Package com.hbm_m.block.machines.crates
Enum Class CrateType
- All Implemented Interfaces:
Serializable,Comparable<CrateType>,Constable
Перечисление типов ящиков HBM. Определяет размеры сетки слотов,
размеры GUI и путь к текстуре.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCols()intX-отступ для слотов ящика (позиция первого слота в Menu)intY-отступ для слотов ящикаintintintY-отступ для хотбараintX-отступ для инвентаря игрокаintY-отступ для инвентаря игрока.intgetRows()intnet.minecraft.resources.ResourceLocationintЦвет текста заголовка (белый для tungsten, черный для остальных)static CrateTypeReturns the enum constant of this class with the specified name.static CrateType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IRON
-
STEEL
-
TUNGSTEN
-
TEMPLATE
-
DESH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCols
public int getCols() -
getRows
public int getRows() -
getSlotCount
public int getSlotCount() -
getGuiWidth
public int getGuiWidth() -
getGuiHeight
public int getGuiHeight() -
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
getCrateSlotStartX
public int getCrateSlotStartX()X-отступ для слотов ящика (позиция первого слота в Menu) -
getCrateSlotStartY
public int getCrateSlotStartY()Y-отступ для слотов ящика -
getPlayerInvStartX
public int getPlayerInvStartX()X-отступ для инвентаря игрока -
getPlayerInvStartY
public int getPlayerInvStartY()Y-отступ для инвентаря игрока. Вычисляется на основе оригинальных координат из 1.7.10: Iron: 104, Steel: 140, Tungsten/Template: 86, Desh: 174 -
getHotbarStartY
public int getHotbarStartY()Y-отступ для хотбара -
getTitleColor
public int getTitleColor()Цвет текста заголовка (белый для tungsten, черный для остальных)
-