Enum Class RackType

java.lang.Object
java.lang.Enum<RackType>
com.minecolonies.api.blocks.types.RackType
All Implemented Interfaces:
Serializable, Comparable<RackType>, Constable, net.minecraft.util.StringRepresentable

public enum RackType extends Enum<RackType> implements net.minecraft.util.StringRepresentable
Defines the types of Racks that the AbstractBlockMinecoloniesRack supports.
  • Enum Constant Details

    • EMPTY

      public static final RackType EMPTY
    • FULL

      public static final RackType FULL
    • EMPTY_DOUBLE

      public static final RackType EMPTY_DOUBLE
    • FULL_DOUBLE

      public static final RackType FULL_DOUBLE
    • NO_RENDER

      public static final RackType NO_RENDER
  • Method Details

    • values

      public static RackType[] 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 RackType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RackType>
    • getName

      public String getName()
    • getTranslationKey

      public String getTranslationKey()
    • isDoubleVariant

      public boolean isDoubleVariant()
    • getInvBasedVariant

      public RackType getInvBasedVariant(boolean empty)
    • getSerializedName

      @NotNull public @NotNull String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable