Enum Class CrateType

java.lang.Object
java.lang.Enum<CrateType>
com.hbm_m.block.machines.crates.CrateType
All Implemented Interfaces:
Serializable, Comparable<CrateType>, Constable

public enum CrateType extends Enum<CrateType>
Перечисление типов ящиков HBM. Определяет размеры сетки слотов, размеры GUI и путь к текстуре.
  • Enum Constant Details

    • IRON

      public static final CrateType IRON
    • STEEL

      public static final CrateType STEEL
    • TUNGSTEN

      public static final CrateType TUNGSTEN
    • TEMPLATE

      public static final CrateType TEMPLATE
    • DESH

      public static final CrateType DESH
  • Method Details

    • values

      public static CrateType[] 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

      public static CrateType valueOf(String name)
      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 name
      NullPointerException - 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, черный для остальных)