Class ItemSelectPCMode

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
com.pixelmonmod.pixelmon.client.gui.pc.ItemSelectPCMode

public class ItemSelectPCMode extends PCMode
  • Field Details

  • Constructor Details

  • Method Details

    • setSelected

      public void setSelected(@Nullable StoragePosition selected)
    • clearSelected

      public void clearSelected()
      Specified by:
      clearSelected in class PCMode
    • setSelectedPokemon

      public void setSelectedPokemon(@Nullable Pokemon selectedPokemon)
    • isAllowedHoverLock

      public boolean isAllowedHoverLock()
      Overrides:
      isAllowedHoverLock in class PCMode
    • isAllowedPokechecker

      public boolean isAllowedPokechecker()
      Overrides:
      isAllowedPokechecker in class PCMode
    • activate

      public void activate(@Nullable ArrayList<StoragePosition> loadedPositions)
      Specified by:
      activate in class PCMode
    • deactivate

      public boolean deactivate()
      Specified by:
      deactivate in class PCMode
      Returns:
      Whether the mode can safely be switched out of.
    • getSelectedPositions

      public ArrayList<StoragePosition> getSelectedPositions()
      Specified by:
      getSelectedPositions in class PCMode
    • hasSelected

      public boolean hasSelected()
      Overrides:
      hasSelected in class PCMode
    • onStorageUpdated

      public void onStorageUpdated(PCStorage newStorage)
      Specified by:
      onStorageUpdated in class PCMode
    • onBoxClicked

      public boolean onBoxClicked(int mouseButton, int boxIndex)
      Specified by:
      onBoxClicked in class PCMode
    • onMouseClicked

      public boolean onMouseClicked(int mouseButton, @Nullable StoragePosition clickedPosition)
      Specified by:
      onMouseClicked in class PCMode
      Returns:
      Whether the event was consumed
    • drawPosition

      protected void drawPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, StoragePosition position, int mouseX, int mouseY)
      Overrides:
      drawPosition in class PCMode
    • drawPokemonSpriteItem

      protected void drawPokemonSpriteItem(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float w, float h, Pokemon pokemon)
      Overrides:
      drawPokemonSpriteItem in class PCMode
    • drawCursor

      public void drawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
      Overrides:
      drawCursor in class PCMode
    • drawItemSprite

      public void drawItemSprite(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, net.minecraft.world.item.ItemStack item)
    • drawItemSprite

      public void drawItemSprite(net.minecraft.client.gui.GuiGraphics graphics, float mouseX, float mouseY, net.minecraft.world.item.ItemStack item, float scaleX, float scaleY)
    • drawSelectedPosition

      protected void drawSelectedPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY)
      Overrides:
      drawSelectedPosition in class PCMode