Class InventoryPixelmon<T extends net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen & InventoryPixelmonBase>

java.lang.Object
com.pixelmonmod.pixelmon.client.gui.inventory.InventoryPixelmon<T>

public class InventoryPixelmon<T extends net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen & InventoryPixelmonBase> extends Object
Changes the Minecraft inventory GUI to include a Pokémon party.
  • Constructor Details

    • InventoryPixelmon

      public InventoryPixelmon(T gui, int partyWidth)
      Opens the party GUI.
      Parameters:
      gui - The GUI to render on.
      partyWidth - The width of the party GUI.
  • Method Details

    • initGui

      public void initGui()
      Initializes the GUI.
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Draws the GUI screen.
      Parameters:
      mouseX - The x coordinate of the mouse.
      mouseY - The y coordinate of the mouse.
      partialTicks - The current amount of partial ticks.
    • drawGuiContainerBackgroundLayer

      public void drawGuiContainerBackgroundLayer(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY)
      Draws the GUI background.
      Parameters:
      partialTicks - The current amount of partial ticks.
      mouseX - The x coordinate of the mouse.
      mouseY - The y coordinate of the mouse.
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
      Handles mouse input.
      Parameters:
      mouseX - The mouseX coordinate of the mouse.
      mouseY - The mouseY coordinate of the mouse.
      mouseButton - The mouse button that was clicked.
      Returns:
      Whether to execute normal inventory mouse input.
    • tick

      public void tick()
    • getSlotClicked

      public int getSlotClicked(double mouseX, double mouseY)
    • newPokechecker

      protected void newPokechecker(int x, int y, Pokemon[] pokemon)
    • getSelected

      public StoragePosition getSelected()
    • setSelected

      public void setSelected(StoragePosition selected)
    • isDrawerOut

      public boolean isDrawerOut()
    • getDrawerOffset

      public int getDrawerOffset()
    • getPartyWidth

      public int getPartyWidth()