public class CoordTrackClientHandler extends IArmorUpgradeClientHandler.AbstractHandler<CoordTrackerHandler>
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordTrackClientHandler.EnumNavigationResult |
static class |
CoordTrackClientHandler.Listener |
IArmorUpgradeClientHandler.AbstractHandler<T extends IArmorUpgradeHandler<?>>, IArmorUpgradeClientHandler.SimpleToggleableHandler<T extends IArmorUpgradeHandler<?>>| Modifier and Type | Field and Description |
|---|---|
boolean |
isListeningToCoordTrackerSetting |
boolean |
pathEnabled |
ClientConfig.PathUpdateSetting |
pathUpdateSetting |
boolean |
wirePath |
boolean |
xRayEnabled |
| Constructor and Description |
|---|
CoordTrackClientHandler() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.pathfinding.Path |
getDronePath(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos) |
IOptionPage |
getGuiOptionsPage(IGuiScreen screen)
When you have some configurable options for your upgrade handler, return a new instance of an
IOptionPage. |
void |
initConfig()
This is called when a
ModConfig.ModConfigEvent is received for the mod. |
CoordTrackClientHandler.EnumNavigationResult |
navigateToSurface(net.minecraft.entity.player.PlayerEntity player) |
void |
render2D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
boolean armorPieceHasPressure)
Called in the 2D render stage (via
RenderGameOverlayEvent.Post) |
void |
render3D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks)
Called in the 3D render stage (via
RenderWorldLastEvent) |
void |
reset()
Called when (re-)equipping the armor piece.
|
void |
saveToConfig()
When called this should save the settings to config.
|
void |
tickClient(ICommonArmorHandler armorHandler)
This method is called every client tick, and should be used to update clientside logic for armor upgrades.
|
getCommonHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnimatedStat, getInitialKeyBinding, getKeybindCategory, getSubKeybindCategory, getSubKeybinds, getTriggerKeyBinding, isToggleable, onResolutionChanged, onTriggered, setOverlayColorpublic boolean isListeningToCoordTrackerSetting
public boolean pathEnabled
public boolean wirePath
public boolean xRayEnabled
public ClientConfig.PathUpdateSetting pathUpdateSetting
public void initConfig()
IArmorUpgradeClientHandlerModConfig.ModConfigEvent is received for the mod.public void saveToConfig()
IArmorUpgradeClientHandlerpublic void tickClient(ICommonArmorHandler armorHandler)
IArmorUpgradeClientHandlerIArmorUpgradeHandler.tick(ICommonArmorHandler, boolean), this method is only called for upgrades
which are actually enabled (or not toggleable).armorHandler - common armor handler for the player wearing this armor piecepublic void render3D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks)
IArmorUpgradeClientHandlerRenderWorldLastEvent)matrixStack - the matrix stackbuffer - the render type bufferpartialTicks - partial ticks since last world tickpublic void render2D(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
float partialTicks,
boolean armorPieceHasPressure)
IArmorUpgradeClientHandlerRenderGameOverlayEvent.Post)matrixStack - the matrix stackpartialTicks - partial ticks since last world tickarmorPieceHasPressure - true if the armor piece actually has any pressurepublic void reset()
IArmorUpgradeClientHandlerpublic CoordTrackClientHandler.EnumNavigationResult navigateToSurface(net.minecraft.entity.player.PlayerEntity player)
public static net.minecraft.pathfinding.Path getDronePath(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.util.math.BlockPos pos)
public 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.screen - an instance of the gui Screen object