public class JetBootsClientHandler extends IArmorUpgradeClientHandler.SimpleToggleableHandler<JetBootsHandler>
IArmorUpgradeClientHandler.AbstractHandler<T extends IArmorUpgradeHandler<?>>, IArmorUpgradeClientHandler.SimpleToggleableHandler<T extends IArmorUpgradeHandler<?>>| Constructor and Description |
|---|
JetBootsClientHandler() |
| Modifier and Type | Method and Description |
|---|---|
IGuiAnimatedStat |
getAnimatedStat()
You can return a
IGuiAnimatedStat here, which the HUD Handler will pick up and render. |
IOptionPage |
getGuiOptionsPage(IGuiScreen screen)
When you have some configurable options for your upgrade handler, return a new instance of an
IOptionPage. |
java.util.Collection<net.minecraft.util.ResourceLocation> |
getSubKeybinds()
Get all the sub-keybinds for this upgrade handler.
|
void |
onResolutionChanged()
Called when the screen resolution has changed.
|
void |
render2D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
boolean armorPieceHasPressure)
Called in the 2D render stage (via
RenderGameOverlayEvent.Post) |
void |
tickClient(ICommonArmorHandler armorHandler)
This method is called every client tick, and should be used to update clientside logic for armor upgrades.
|
render3D, resetgetCommonHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInitialKeyBinding, getKeybindCategory, getSubKeybindCategory, getTriggerKeyBinding, initConfig, isToggleable, onTriggered, saveToConfig, setOverlayColorpublic IOptionPage getGuiOptionsPage(IGuiScreen screen)
IArmorUpgradeClientHandlerIOptionPage.
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.getGuiOptionsPage in interface IArmorUpgradeClientHandler<JetBootsHandler>getGuiOptionsPage in class IArmorUpgradeClientHandler.SimpleToggleableHandler<JetBootsHandler>screen - an instance of the gui Screen objectpublic void tickClient(ICommonArmorHandler armorHandler)
IArmorUpgradeClientHandlerIArmorUpgradeHandler.tick(ICommonArmorHandler, boolean), this method is only called for upgrades
which are actually enabled (or not toggleable).tickClient in interface IArmorUpgradeClientHandler<JetBootsHandler>tickClient in class IArmorUpgradeClientHandler.SimpleToggleableHandler<JetBootsHandler>armorHandler - common armor handler for the player wearing this armor piecepublic void render2D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
boolean armorPieceHasPressure)
IArmorUpgradeClientHandlerRenderGameOverlayEvent.Post)render2D in interface IArmorUpgradeClientHandler<JetBootsHandler>render2D in class IArmorUpgradeClientHandler.SimpleToggleableHandler<JetBootsHandler>matrixStack - the matrix stackpartialTicks - partial ticks since last world tickarmorPieceHasPressure - true if the armor piece actually has any pressurepublic IGuiAnimatedStat getAnimatedStat()
IArmorUpgradeClientHandlerIGuiAnimatedStat here, which the HUD Handler will pick up and render. It also
automatically opens and closes the stat window as necessary.public void onResolutionChanged()
IArmorUpgradeClientHandlerpublic java.util.Collection<net.minecraft.util.ResourceLocation> getSubKeybinds()
IArmorUpgradeClientHandler