Iris/src/main/java/com/volmit/iris/util/WindowResolution.java
Daniel Mills ed9ddc0825 More fix
2020-08-26 09:33:05 -04:00

42 lines
647 B
Java

package com.volmit.iris.util;
import org.bukkit.event.inventory.InventoryType;
public enum WindowResolution
{
W9_H6(9, 6, InventoryType.CHEST),
W5_H1(5, 1, InventoryType.HOPPER),
W3_H3(3, 3, InventoryType.DROPPER);
private int width;
private int maxHeight;
private InventoryType type;
private WindowResolution(int w, int h, InventoryType type)
{
this.width = w;
this.maxHeight = h;
this.type = type;
}
public int getMaxWidthOffset()
{
return (getWidth() - 1) / 2;
}
public int getWidth()
{
return width;
}
public int getMaxHeight()
{
return maxHeight;
}
public InventoryType getType()
{
return type;
}
}