Enum Class MEGACraftingUnitType

java.lang.Object
java.lang.Enum<MEGACraftingUnitType>
gripe._90.megacells.block.MEGACraftingUnitType
All Implemented Interfaces:
appeng.block.crafting.ICraftingUnitType, Serializable, Comparable<MEGACraftingUnitType>, Constable

public enum MEGACraftingUnitType extends Enum<MEGACraftingUnitType> implements appeng.block.crafting.ICraftingUnitType
  • Enum Constant Details

  • Method Details

    • values

      public static MEGACraftingUnitType[] 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 MEGACraftingUnitType 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
    • getStorageBytes

      public long getStorageBytes()
      Specified by:
      getStorageBytes in interface appeng.block.crafting.ICraftingUnitType
    • getAcceleratorThreads

      public int getAcceleratorThreads()
      Specified by:
      getAcceleratorThreads in interface appeng.block.crafting.ICraftingUnitType
    • getAffix

      public String getAffix()
    • getDefinition

      public appeng.core.definitions.BlockDefinition<?> getDefinition()
    • getItemFromType

      public net.minecraft.world.item.Item getItemFromType()
      Specified by:
      getItemFromType in interface appeng.block.crafting.ICraftingUnitType