Class KickHandler
java.lang.Object
me.desht.pneumaticcraft.api.pneumatic_armor.BaseArmorUpgradeHandler<IArmorExtensionData>
me.desht.pneumaticcraft.common.pneumatic_armor.handlers.KickHandler
- All Implemented Interfaces:
IArmorUpgradeHandler<IArmorExtensionData>
-
Field Summary
Fields inherited from interface me.desht.pneumaticcraft.api.pneumatic_armor.IArmorUpgradeHandler
UPGRADE_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.EquipmentSlotGet the armor slot that this upgrade handler is attached to.net.minecraft.resources.ResourceLocationgetID()Get a unique ID for this upgrade handler.floatgetIdleAirUsage(ICommonArmorHandler armorHandler) Returns the usage in mL/tick when this upgrade handler is enabled.intgetMaxInstallableUpgrades(PNCUpgrade upgrade) Get the maximum number of the given upgrade which may be installed.Return the upgrades that are required to be in the armor piece to enable this module.Methods inherited from class me.desht.pneumaticcraft.api.pneumatic_armor.BaseArmorUpgradeHandler
getIndex, setIndexMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.pneumatic_armor.IArmorUpgradeHandler
extensionData, getMinimumPressure, getTranslationKey, onDataFieldUpdated, onInit, onShutdown, onToggle, tick
-
Constructor Details
-
KickHandler
public KickHandler()
-
-
Method Details
-
getID
public net.minecraft.resources.ResourceLocation getID()Description copied from interface:IArmorUpgradeHandlerGet a unique ID for this upgrade handler. You can use this ID to retrieve the handler object withICommonArmorRegistry.getArmorUpgradeHandler(ResourceLocation).- Returns:
- a unique resource location
-
getRequiredUpgrades
Description copied from interface:IArmorUpgradeHandlerReturn the upgrades that are required to be in the armor piece to enable this module.- Returns:
- an array of required upgrades
-
getMaxInstallableUpgrades
Description copied from interface:IArmorUpgradeHandlerGet the maximum number of the given upgrade which may be installed.- Parameters:
upgrade- an upgrade- Returns:
- the maximum installable amount of this upgrade
-
getIdleAirUsage
Description copied from interface:IArmorUpgradeHandlerReturns 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:IArmorUpgradeHandlerGet the armor slot that this upgrade handler is attached to.- Returns:
- the armor slot
-