java.lang.Object
me.desht.pneumaticcraft.api.client.pneumatic_helmet.IArmorUpgradeClientHandler.AbstractHandler<DroneDebugHandler>
me.desht.pneumaticcraft.client.render.pneumatic_armor.upgrade_handler.DroneDebugClientHandler
All Implemented Interfaces:
IArmorUpgradeClientHandler<DroneDebugHandler>

public class DroneDebugClientHandler extends IArmorUpgradeClientHandler.AbstractHandler<DroneDebugHandler>
  • Constructor Details

    • DroneDebugClientHandler

      public DroneDebugClientHandler()
  • Method Details

    • onWidgetsChanged

      public static void onWidgetsChanged()
    • getShowingPositions

      public Set<net.minecraft.core.BlockPos> getShowingPositions()
    • getShownArea

      public Set<net.minecraft.core.BlockPos> getShownArea()
    • getTriggerKeyBinding

      public Optional<net.minecraft.client.KeyMapping> getTriggerKeyBinding()
      Description copied from interface: IArmorUpgradeClientHandler
      Get the keybind used to trigger this upgrade's action, if any. This is distinct from the toggle keybind (which switches an upgrade on or off); the trigger keybind triggers an action, e.g. Hacking, Pneumatic Kick...
      Returns:
      an optional keybinding name
    • onTriggered

      public void onTriggered(ICommonArmorHandler armorHandler)
      Description copied from interface: IArmorUpgradeClientHandler
      Called when the registered triggered keybind (if any) is pressed.
      Parameters:
      armorHandler - the client-side common armor handler object for the player
    • tickClient

      public void tickClient(ICommonArmorHandler armorHandler)
      Description copied from interface: IArmorUpgradeClientHandler
      This method is called every client tick, and should be used to update clientside logic for armor upgrades. Unlike IArmorUpgradeHandler.tick(ICommonArmorHandler, boolean), this method is only called for upgrades which are actually enabled (or not toggleable).
      Parameters:
      armorHandler - common armor handler for the player wearing this armor piece
    • render3D

      public void render3D(com.mojang.blaze3d.vertex.PoseStack matrixStack, net.minecraft.client.renderer.MultiBufferSource buffer, float partialTicks)
      Description copied from interface: IArmorUpgradeClientHandler
      Called in the 3D render stage (via RenderLevelLastEvent)
      Parameters:
      matrixStack - the matrix stack
      buffer - the render type buffer
      partialTicks - partial ticks since last world tick
    • render2D

      public void render2D(com.mojang.blaze3d.vertex.PoseStack matrixStack, float partialTicks, boolean armorPieceHasPressure)
      Description copied from interface: IArmorUpgradeClientHandler
      Called in the 2D render stage (via the Forge IIngameOverlay system).
      Parameters:
      matrixStack - the matrix stack
      partialTicks - partial ticks since last world tick
      armorPieceHasPressure - true if the armor piece actually has any pressure
    • reset

      public void reset()
      Description copied from interface: IArmorUpgradeClientHandler
      Called 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.
    • getGuiOptionsPage

      public IOptionPage getGuiOptionsPage(IGuiScreen screen)
      Description copied from interface: IArmorUpgradeClientHandler
      When you have some configurable options for your upgrade handler, return a new instance of an IOptionPage. 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
    • isToggleable

      public boolean isToggleable()
      Description copied from interface: IArmorUpgradeClientHandler
      Is this upgrade toggleable, i.e. can it be switched on & off? Toggleable upgrades will have a checkbox in their GUI page with a possible associated keybinding. Non-toggleable upgrades generally have a bindable hotkey to trigger a one-off action (e.g. hacking, chestplate launcher...). The default return value for this method is true, which is the most common case. Override to return false for non-toggleable upgrades.
      Returns:
      true if the upgrade is toggleable, false otherwise
    • enabledForPlayer

      public static boolean enabledForPlayer(net.minecraft.world.entity.player.Player player)