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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drawGuiContainerBackgroundLayer
(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) Draws the GUI background.int
int
int
getSlotClicked
(double mouseX, double mouseY) void
initGui()
Initializes the GUI.boolean
boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) Handles mouse input.protected void
newPokechecker
(int x, int y, Pokemon[] pokemon) void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) Draws the GUI screen.void
setSelected
(StoragePosition selected) void
tick()
-
Constructor Details
-
InventoryPixelmon
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
-
getSelected
-
setSelected
-
isDrawerOut
public boolean isDrawerOut() -
getDrawerOffset
public int getDrawerOffset() -
getPartyWidth
public int getPartyWidth()
-