Enum Class ArmorUpgradeClientRegistry

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

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

  • Method Details

    • values

      public static ArmorUpgradeClientRegistry[] 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 ArmorUpgradeClientRegistry 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 ArmorUpgradeClientRegistry getInstance()
    • registerHandler

      public <T extends IArmorUpgradeHandler<?>> void registerHandler(T handler, IArmorUpgradeClientHandler<T> clientHandler)
    • registerSubKeyBinds

      public void registerSubKeyBinds()
    • getKeybindingForUpgrade

      public net.minecraft.client.KeyMapping getKeybindingForUpgrade(net.minecraft.resources.ResourceLocation upgradeID)
    • getClientHandler

      public <C extends IArmorUpgradeClientHandler<U>, U extends IArmorUpgradeHandler<?>> C getClientHandler(U armorUpgradeHandler, Class<C> clientClass)
    • getClientHandler

      public IArmorUpgradeClientHandler<?> getClientHandler(net.minecraft.resources.ResourceLocation id)
    • getTriggeredHandler

      public Optional<IArmorUpgradeClientHandler<?>> getTriggeredHandler(net.minecraft.client.KeyMapping keyBinding)
    • getHandlersForSlot

      public List<IArmorUpgradeClientHandler<?>> getHandlersForSlot(net.minecraft.world.entity.EquipmentSlot slot)
      Get all the client handlers for the given armor slot. This is guaranteed to be in exactly the same order as the common handlers for the same slot (as returned by ArmorUpgradeRegistry.getHandlersForSlot(EquipmentSlot)
      Parameters:
      slot - the slot to query
      Returns:
      a list of all the client upgrade handlers registered for that slot
    • refreshConfig

      public void refreshConfig()