Enum Class ArmorUpgradeRegistry
java.lang.Object
java.lang.Enum<ArmorUpgradeRegistry>
me.desht.pneumaticcraft.common.pneumatic_armor.ArmorUpgradeRegistry
- All Implemented Interfaces:
Serializable,Comparable<ArmorUpgradeRegistry>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.entity.EquipmentSlot[] -
Method Summary
Modifier and TypeMethodDescriptionentries()voidfreeze()getHandlersForSlot(net.minecraft.world.entity.EquipmentSlot slotType) static ArmorUpgradeRegistrygetUpgradeEntry(net.minecraft.resources.ResourceLocation upgradeID) booleanisFrozen()<T extends IArmorUpgradeHandler<?>>
TregisterUpgradeHandler(T handler) static ArmorUpgradeRegistryReturns the enum constant of this class with the specified name.static ArmorUpgradeRegistry[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
ARMOR_SLOTS
public static final net.minecraft.world.entity.EquipmentSlot[] ARMOR_SLOTS
-
-
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
-
getInstance
-
registerUpgradeHandler
-
getHandlersForSlot
public List<IArmorUpgradeHandler<?>> getHandlersForSlot(net.minecraft.world.entity.EquipmentSlot slotType) -
getUpgradeEntry
-
entries
-
isFrozen
public boolean isFrozen() -
freeze
public void freeze() -
getKnownUpgradeIds
-