public class InventoryPixelmon<T extends net.minecraft.client.gui.DisplayEffectsScreen & InventoryPixelmonBase>
extends java.lang.Object
Constructor and Description |
---|
InventoryPixelmon(T gui,
int partyWidth)
Opens the party GUI.
|
Modifier and Type | Method and Description |
---|---|
void |
drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix,
float partialTicks,
int mouseX,
int mouseY)
Draws the GUI background.
|
int |
getDrawerOffset() |
int |
getPartyWidth() |
StoragePosition |
getSelected() |
int |
getSlotClicked(double mouseX,
double mouseY) |
void |
initGui()
Initializes the GUI.
|
boolean |
isDrawerOut() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton)
Handles mouse input.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
int mouseX,
int mouseY,
float partialTicks)
Draws the GUI screen.
|
void |
setSelected(StoragePosition selected) |
void |
tick() |
public InventoryPixelmon(T gui, int partyWidth)
gui
- The GUI to render on.partyWidth
- The width of the party GUI.public void initGui()
public void render(com.mojang.blaze3d.matrix.MatrixStack matrix, int mouseX, int mouseY, float partialTicks)
mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.partialTicks
- The current amount of partial ticks.public void drawGuiContainerBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack matrix, float partialTicks, int mouseX, int mouseY)
partialTicks
- The current amount of partial ticks.mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseX
- The mouseX coordinate of the mouse.mouseY
- The mouseY coordinate of the mouse.mouseButton
- The mouse button that was clicked.public void tick()
public int getSlotClicked(double mouseX, double mouseY)
public StoragePosition getSelected()
public void setSelected(StoragePosition selected)
public boolean isDrawerOut()
public int getDrawerOffset()
public int getPartyWidth()