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

public class StepAssistHandler extends BaseArmorUpgradeHandler<IArmorExtensionData>
  • Constructor Details

    • StepAssistHandler

      public StepAssistHandler()
  • 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
    • 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
    • tick

      public void tick(ICommonArmorHandler commonArmorHandler, boolean enabled)
      Description copied from interface: IArmorUpgradeHandler
      Called every tick for a player when this upgrade is installed in their armor
      Parameters:
      commonArmorHandler - the armor handler object
      enabled - true if the upgrade is currently enabled, false otherwise
    • onToggle

      public void onToggle(ICommonArmorHandler commonArmorHandler, boolean newState)
      Description copied from interface: IArmorUpgradeHandler
      Called when an upgrade is toggled on/off by the player
      Parameters:
      commonArmorHandler - the armor handler object
      newState - the new state of the upgrade
    • onShutdown

      public void onShutdown(ICommonArmorHandler commonArmorHandler)
      Description copied from interface: IArmorUpgradeHandler
      Called when the armor is removed; carry out any necessary shutdown tasks here
      Parameters:
      commonArmorHandler - the armor handler object