Class CoordTrackClientHandler
java.lang.Object
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.AbstractHandler<CoordTrackerHandler>
me.desht.pneumaticcraft.client.pneumatic_armor.upgrade_handler.CoordTrackClientHandler
- All Implemented Interfaces:
IArmorUpgradeClientHandler<CoordTrackerHandler>
public class CoordTrackClientHandler
extends IArmorUpgradeClientHandler.AbstractHandler<CoordTrackerHandler>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from interface me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler
IArmorUpgradeClientHandler.AbstractHandler<T extends IArmorUpgradeHandler<?>>, IArmorUpgradeClientHandler.SimpleToggleableHandler<T extends IArmorUpgradeHandler<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanbooleanbooleanboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.pathfinder.PathgetDronePath(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos) getGuiOptionsPage(IGuiScreen screen) When you have some configurable options for your upgrade handler, return a new instance of anIOptionPage.net.minecraft.core.BlockPosvoidThis is called when aModConfigEventis received for the mod.navigateToSurface(net.minecraft.world.entity.player.Player player) voidrender2D(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, boolean armorPieceHasPressure) Called in the 2D render stage (via Forge'sIGuiOverlaysystem).voidrender3D(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, float partialTicks) Called in the 3D render stage (viaRenderLevelStageEvent)voidreset()Called when (re-)equipping the armor piece.voidWhen called this should save the settings to config.voidtickClient(ICommonArmorHandler armorHandler, boolean isEnabled) This method is called every client tick, and should be used to update clientside logic for armor upgrades.Methods 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, isEnabledByDefault, isEnabledByDefault, isToggleable, onResolutionChanged, onTriggered, setOverlayColor
-
Field Details
-
isListeningToCoordTrackerSetting
public boolean isListeningToCoordTrackerSetting -
pathEnabled
public boolean pathEnabled -
wirePath
public boolean wirePath -
xRayEnabled
public boolean xRayEnabled -
pathUpdateSetting
-
-
Constructor Details
-
CoordTrackClientHandler
public CoordTrackClientHandler()
-
-
Method Details
-
initConfig
public void initConfig()Description copied from interface:IArmorUpgradeClientHandlerThis is called when aModConfigEventis received for the mod. -
saveToConfig
public void saveToConfig()Description copied from interface:IArmorUpgradeClientHandlerWhen called this should save the settings to config. -
tickClient
Description copied from interface:IArmorUpgradeClientHandlerThis method is called every client tick, and should be used to update clientside logic for armor upgrades.- Parameters:
armorHandler- common armor handler for the player wearing this armor pieceisEnabled- true if the upgrade is currently enabled, false otherwise
-
render3D
public void render3D(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, float partialTicks) Description copied from interface:IArmorUpgradeClientHandlerCalled in the 3D render stage (viaRenderLevelStageEvent)- Parameters:
matrixStack- the matrix stackbuffer- the render type bufferpartialTicks- partial ticks since last world tick
-
render2D
public void render2D(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, boolean armorPieceHasPressure) Description copied from interface:IArmorUpgradeClientHandlerCalled in the 2D render stage (via Forge'sIGuiOverlaysystem).- Parameters:
matrixStack- the matrix stackpartialTicks- partial ticks since last world tickarmorPieceHasPressure- true if the armor piece actually has any pressure
-
reset
public void reset()Description copied from interface:IArmorUpgradeClientHandlerCalled when (re-)equipping the armor piece. Use this to clear any client-side state information held by the upgrade handler and initialise it to a known state. -
getDronePath
public static net.minecraft.world.level.pathfinder.Path getDronePath(net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos) -
getTrackedPos
public net.minecraft.core.BlockPos getTrackedPos() -
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.- Parameters:
screen- an instance of the gui Screen object- Returns:
- an options page, or null if the upgrade does not have an options page
-