java.lang.Object
me.desht.pneumaticcraft.api.pneumatic_armor.BaseArmorUpgradeHandler<IArmorExtensionData>
me.desht.pneumaticcraft.common.pneumatic_armor.handlers.KickHandler
All Implemented Interfaces:
IArmorUpgradeHandler<IArmorExtensionData>

public class KickHandler extends BaseArmorUpgradeHandler<IArmorExtensionData>
  • Constructor Details

    • KickHandler

      public KickHandler()
  • Method Details

    • getID

      public net.minecraft.resources.ResourceLocation getID()
      Description copied from interface: IArmorUpgradeHandler
      Get a unique ID for this upgrade handler.
      Returns:
      a unique resource location
    • getRequiredUpgrades

      public PNCUpgrade[] getRequiredUpgrades()
      Description copied from interface: IArmorUpgradeHandler
      Return the upgrades that are required to be in the armor piece to enable this module.
      Returns:
      an array of required upgrades
    • getMaxInstallableUpgrades

      public int getMaxInstallableUpgrades(PNCUpgrade upgrade)
      Description copied from interface: IArmorUpgradeHandler
      Get the maximum number of the given upgrade which may be installed.
      Parameters:
      upgrade - an upgrade
      Returns:
      the maximum installable amount of this upgrade
    • getIdleAirUsage

      public float getIdleAirUsage(ICommonArmorHandler armorHandler)
      Description copied from interface: IArmorUpgradeHandler
      Returns the usage in mL/tick when this upgrade handler is enabled. Note this is constant usage just from the upgrade being switched on, and does not take into account air used when some action is taken, e.g. flying with the Jet Boots upgrade is not included here, but air used by the Entity Tracker upgrade is included.
      Parameters:
      armorHandler - the armor handler object (can be used to get upgrades, etc.)
      Returns:
      usage in mL/tick
    • getEquipmentSlot

      public net.minecraft.world.entity.EquipmentSlot getEquipmentSlot()
      Description copied from interface: IArmorUpgradeHandler
      Get the armor slot that this upgrade handler is attached to.
      Returns:
      the armor slot