Class SpeedBoostClientHandler
java.lang.Object
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.AbstractHandler<T>
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.SimpleToggleableHandler<SpeedBoostHandler>
me.desht.pneumaticcraft.client.pneumatic_armor.upgrade_handler.SpeedBoostClientHandler
- All Implemented Interfaces:
IArmorUpgradeClientHandler<SpeedBoostHandler>
public class SpeedBoostClientHandler
extends IArmorUpgradeClientHandler.SimpleToggleableHandler<SpeedBoostHandler>
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler
IArmorUpgradeClientHandler.AbstractHandler<T extends IArmorUpgradeHandler<?>>, IArmorUpgradeClientHandler.SimpleToggleableHandler<T extends IArmorUpgradeHandler<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuiOptionsPage(IGuiScreen screen) When you have some configurable options for your upgrade handler, return a new instance of anIOptionPage.booleanIs this upgrade enabled by default, i.e.Methods inherited from class me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.SimpleToggleableHandler
render2D, render3D, reset, tickClientMethods inherited from class me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.AbstractHandler
getCommonHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler
getAnimatedStat, getDefaultStatLayout, getID, getInitialKeyBinding, getKeybindCategory, getSubKeybindCategory, getSubKeybinds, getTriggerKeyBinding, initConfig, isEnabledByDefault, isToggleable, onResolutionChanged, onTriggered, saveToConfig, setOverlayColor, tickClient
-
Constructor Details
-
SpeedBoostClientHandler
public SpeedBoostClientHandler()
-
-
Method Details
-
getGuiOptionsPage
Description copied from interface:IArmorUpgradeClientHandlerWhen you have some configurable options for your upgrade handler, return a new instance of anIOptionPage. When you do so, it will automatically get picked up by the armor GUI handler, and a button for the upgrade will be displayed in the main armor GUI.- Specified by:
getGuiOptionsPagein interfaceIArmorUpgradeClientHandler<SpeedBoostHandler>- Overrides:
getGuiOptionsPagein classIArmorUpgradeClientHandler.SimpleToggleableHandler<SpeedBoostHandler>- Parameters:
screen- an instance of the gui Screen object- Returns:
- an options page, or null if the upgrade does not have an options page
-
isEnabledByDefault
public boolean isEnabledByDefault()Description copied from interface:IArmorUpgradeClientHandlerIs this upgrade enabled by default, i.e. when the player first equips the armor and there's no value saved in ArmorFeatureStatus.json?- Returns:
- whether the upgrade should be enabled by default
-