java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
Direct Known Subclasses:
ItemSelectPCMode, MultiSelectPCMode, SingleSelectPCMode

public abstract class PCMode extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • activate

      public abstract void activate(@Nullable ArrayList<StoragePosition> loadedPositions)
    • deactivate

      public abstract boolean deactivate()
      Returns:
      Whether the mode can safely be switched out of.
    • getSelectedPositions

      public abstract ArrayList<StoragePosition> getSelectedPositions()
    • clearSelected

      public abstract void clearSelected()
    • isAllowedHoverLock

      public boolean isAllowedHoverLock()
    • isAllowedPokechecker

      public boolean isAllowedPokechecker()
    • hasSelected

      public boolean hasSelected()
    • isSelected

      protected boolean isSelected(StoragePosition position)
    • onStorageUpdated

      public abstract void onStorageUpdated(PCStorage newStorage)
    • onBoxUpdated

      public void onBoxUpdated(int newBoxNumber)
    • onMouseClicked

      public abstract boolean onMouseClicked(int mouseButton, @Nullable StoragePosition position)
      Returns:
      Whether the event was consumed
    • onMouseReleased

      public boolean onMouseReleased(int mouseButton, @Nullable StoragePosition position)
      Returns:
      Whether the event was consumed
    • onBoxClicked

      public abstract boolean onBoxClicked(int mouseButton, int boxIndex)
    • onKeyPress

      public boolean onKeyPress(int keyCode, int scanCode, int modifiers)
      Returns:
      Whether the input was consumed or not
    • drawBox

      protected void drawBox(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
    • drawPosition

      protected void drawPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY)
    • drawPosition

      protected void drawPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, StoragePosition position, int mouseX, int mouseY)
    • drawHealthBar

      public static void drawHealthBar(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int width, int height, float healthPercentage)
    • drawSelectedPosition

      protected void drawSelectedPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY)
    • drawFooter

      public void drawFooter(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
    • drawCursor

      public void drawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, net.minecraft.resources.ResourceLocation cursorSprite)
    • drawCursor

      public void drawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
    • drawCursorGrabbed

      public void drawCursorGrabbed(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
    • drawPokemonSprite

      protected void drawPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon, Color color, boolean drawItem)
    • drawPokemonSprite

      protected void drawPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, Pokemon pokemon, Color color, boolean drawItem, boolean drawShadow)
    • drawPokemonSpriteItem

      protected void drawPokemonSpriteItem(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float w, float h, Pokemon pokemon)