Enum Class ArmorUpgradeRegistry

java.lang.Object
java.lang.Enum<ArmorUpgradeRegistry>
me.desht.pneumaticcraft.common.pneumatic_armor.ArmorUpgradeRegistry
All Implemented Interfaces:
Serializable, Comparable<ArmorUpgradeRegistry>, Constable

public enum ArmorUpgradeRegistry extends Enum<ArmorUpgradeRegistry>
  • Enum Constant Details

  • Field Details

    • ARMOR_SLOTS

      public static final net.minecraft.world.entity.EquipmentSlot[] ARMOR_SLOTS
  • Method Details

    • values

      public static ArmorUpgradeRegistry[] 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 ArmorUpgradeRegistry 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
    • getInstance

      public static ArmorUpgradeRegistry getInstance()
    • registerUpgradeHandler

      public <T extends IArmorUpgradeHandler<?>> T registerUpgradeHandler(T handler)
    • getHandlersForSlot

      public List<IArmorUpgradeHandler<?>> getHandlersForSlot(net.minecraft.world.entity.EquipmentSlot slotType)
    • getUpgradeEntry

      public IArmorUpgradeHandler<?> getUpgradeEntry(net.minecraft.resources.ResourceLocation upgradeID)
    • entries

      public Stream<IArmorUpgradeHandler<?>> entries()
    • isFrozen

      public boolean isFrozen()
    • freeze

      public void freeze()
    • getKnownUpgradeIds

      public List<String> getKnownUpgradeIds()