Class PCMode
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
- Direct Known Subclasses:
ItemSelectPCMode
,MultiSelectPCMode
,SingleSelectPCMode
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
activate
(ArrayList<StoragePosition> loadedPositions) abstract void
abstract boolean
protected void
drawBox
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
drawCursor
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
drawCursor
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, net.minecraft.resources.ResourceLocation cursorSprite) void
drawCursorGrabbed
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
drawFooter
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) protected void
drawPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, Pokemon pokemon) 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) protected void
drawPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon) protected void
drawPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon, boolean drawitem) protected void
drawPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon, Color color) protected void
drawPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon, Color color, boolean drawItem) protected void
drawPokemonSpriteItem
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float w, float h, Pokemon pokemon) protected void
drawPosition
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, StoragePosition position, int mouseX, int mouseY) protected void
drawPosition
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY) protected void
drawSelectedPosition
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY) abstract ArrayList<StoragePosition>
boolean
boolean
boolean
protected boolean
isSelected
(StoragePosition position) abstract boolean
onBoxClicked
(int mouseButton, int boxIndex) void
onBoxUpdated
(int newBoxNumber) boolean
onKeyPress
(int keyCode, int scanCode, int modifiers) abstract boolean
onMouseClicked
(int mouseButton, StoragePosition position) boolean
onMouseReleased
(int mouseButton, StoragePosition position) abstract void
onStorageUpdated
(PCStorage newStorage)
-
Field Details
-
ps
-
color
-
name
-
-
Constructor Details
-
PCMode
-
-
Method Details
-
activate
-
deactivate
public abstract boolean deactivate()- Returns:
- Whether the mode can safely be switched out of.
-
getSelectedPositions
-
clearSelected
public abstract void clearSelected() -
isAllowedHoverLock
public boolean isAllowedHoverLock() -
isAllowedPokechecker
public boolean isAllowedPokechecker() -
hasSelected
public boolean hasSelected() -
isSelected
-
onStorageUpdated
-
onBoxUpdated
public void onBoxUpdated(int newBoxNumber) -
onMouseClicked
- Returns:
- Whether the event was consumed
-
onMouseReleased
- 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) -
drawSelectedPosition
protected void drawSelectedPosition(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, 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) -
drawPokemonSprite
protected void drawPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, Pokemon pokemon, boolean drawitem) -
drawPokemonSprite
-
drawPokemonSprite
protected void drawPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float width, float height, Pokemon pokemon) -
drawPokemonSprite
-
drawPokemonSprite
-
drawPokemonSpriteItem
protected void drawPokemonSpriteItem(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float w, float h, Pokemon pokemon)
-