Class PCToolbar

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCToolbar

public class PCToolbar extends Object
The Pokemon Summary screen that appears when hovering over a Pokemon during PC operations.

  • Field Details

    • ICON_SIZE

      protected static final int ICON_SIZE
      See Also:
    • PADDING_START_END

      protected static final int PADDING_START_END
      Padding before and after the first and last icons respectively
      See Also:
    • PADDING_BETWEEN_ICONS

      protected static final int PADDING_BETWEEN_ICONS
      See Also:
    • PADDING_LEFT

      protected static final int PADDING_LEFT
      Distance from the left side of the screen
      See Also:
    • BUTTON_INFO

      protected static final Map<PCToolbar.ToolbarButtons,com.pixelmonmod.pixelmon.client.gui.pc.PCToolbar.ButtonInfo> BUTTON_INFO
    • xSize

      protected int xSize
      The X size of the toolbar in pixels.
    • ySize

      protected int ySize
      The Y size of the toolbar in pixels. Depends on enabled icons.
    • anchorX

      protected int anchorX
    • anchorY

      protected int anchorY
    • host

      protected PCToolbarHost host
      The PC Screen this is attached to.
    • isVisible

      protected boolean isVisible
      Flag to hide the toolbar
    • buttons

  • Constructor Details

  • Method Details

    • setActive

      public void setActive(boolean v)
    • setTooltips

      public void setTooltips(boolean v)
    • init

      public void init()
    • addButton

      protected void addButton(PCToolbar.ToolbarButtons key, KeyBindImageButton btn)
    • setVisible

      public void setVisible(boolean visible)
    • render

      protected void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)