public enum ArmorUpgradeClientRegistry extends java.lang.Enum<ArmorUpgradeClientRegistry>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
IArmorUpgradeClientHandler<?> |
getClientHandler(net.minecraft.util.ResourceLocation id) |
<C extends IArmorUpgradeClientHandler<U>,U extends IArmorUpgradeHandler<?>> |
getClientHandler(U armorUpgradeHandler,
java.lang.Class<C> clientClass) |
java.util.List<IArmorUpgradeClientHandler<?>> |
getHandlersForSlot(net.minecraft.inventory.EquipmentSlotType slot)
Get all the client handlers for the given armor slot.
|
static ArmorUpgradeClientRegistry |
getInstance() |
net.minecraft.client.settings.KeyBinding |
getKeybindingForUpgrade(net.minecraft.util.ResourceLocation upgradeID) |
java.util.Optional<IArmorUpgradeClientHandler<?>> |
getTriggeredHandler(net.minecraft.client.settings.KeyBinding keyBinding) |
void |
refreshConfig() |
<T extends IArmorUpgradeHandler<?>> |
registerHandler(T handler,
IArmorUpgradeClientHandler<T> clientHandler) |
static ArmorUpgradeClientRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArmorUpgradeClientRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArmorUpgradeClientRegistry INSTANCE
public static ArmorUpgradeClientRegistry[] values()
for (ArmorUpgradeClientRegistry c : ArmorUpgradeClientRegistry.values()) System.out.println(c);
public static ArmorUpgradeClientRegistry valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ArmorUpgradeClientRegistry getInstance()
public <T extends IArmorUpgradeHandler<?>> void registerHandler(T handler, IArmorUpgradeClientHandler<T> clientHandler)
public net.minecraft.client.settings.KeyBinding getKeybindingForUpgrade(net.minecraft.util.ResourceLocation upgradeID)
public <C extends IArmorUpgradeClientHandler<U>,U extends IArmorUpgradeHandler<?>> C getClientHandler(U armorUpgradeHandler, java.lang.Class<C> clientClass)
public IArmorUpgradeClientHandler<?> getClientHandler(net.minecraft.util.ResourceLocation id)
public java.util.Optional<IArmorUpgradeClientHandler<?>> getTriggeredHandler(net.minecraft.client.settings.KeyBinding keyBinding)
public java.util.List<IArmorUpgradeClientHandler<?>> getHandlersForSlot(net.minecraft.inventory.EquipmentSlotType slot)
ArmorUpgradeRegistry.getHandlersForSlot(EquipmentSlotType)slot - the slot to querypublic void refreshConfig()