Class ItemSelectPCMode
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
com.pixelmonmod.pixelmon.client.gui.pc.ItemSelectPCMode
-
Field Summary
Modifier and TypeFieldDescriptionprotected Color
protected static final String
protected StoragePosition
protected Pokemon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ArrayList<StoragePosition> loadedPositions) void
boolean
void
drawCursor
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
drawItemSprite
(net.minecraft.client.gui.GuiGraphics graphics, float mouseX, float mouseY, net.minecraft.world.item.ItemStack item, float scaleX, float scaleY) void
drawItemSprite
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, net.minecraft.world.item.ItemStack item) 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
drawSelectedPosition
(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, StoragePosition position, int mouseX, int mouseY) boolean
boolean
boolean
boolean
onBoxClicked
(int mouseButton, int boxIndex) boolean
onMouseClicked
(int mouseButton, StoragePosition clickedPosition) void
onStorageUpdated
(PCStorage newStorage) void
setSelected
(StoragePosition selected) void
setSelectedPokemon
(Pokemon selectedPokemon) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pc.PCMode
drawBox, drawCursor, drawCursorGrabbed, drawFooter, drawHealthBar, drawPokemonSprite, drawPokemonSprite, drawPosition, isSelected, onBoxUpdated, onKeyPress, onMouseReleased
-
Field Details
-
name
- See Also:
-
color
-
selected
-
selectedPokemon
-
-
Constructor Details
-
ItemSelectPCMode
-
-
Method Details
-
setSelected
-
clearSelected
public void clearSelected()- Specified by:
clearSelected
in classPCMode
-
setSelectedPokemon
-
isAllowedHoverLock
public boolean isAllowedHoverLock()- Overrides:
isAllowedHoverLock
in classPCMode
-
isAllowedPokechecker
public boolean isAllowedPokechecker()- Overrides:
isAllowedPokechecker
in classPCMode
-
activate
-
deactivate
public boolean deactivate()- Specified by:
deactivate
in classPCMode
- Returns:
- Whether the mode can safely be switched out of.
-
getSelectedPositions
- Specified by:
getSelectedPositions
in classPCMode
-
hasSelected
public boolean hasSelected()- Overrides:
hasSelected
in classPCMode
-
onStorageUpdated
- Specified by:
onStorageUpdated
in classPCMode
-
onBoxClicked
public boolean onBoxClicked(int mouseButton, int boxIndex) - Specified by:
onBoxClicked
in classPCMode
-
onMouseClicked
- Specified by:
onMouseClicked
in classPCMode
- 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 classPCMode
-
drawPokemonSpriteItem
protected void drawPokemonSpriteItem(net.minecraft.client.gui.GuiGraphics graphics, float xPos, float yPos, float w, float h, Pokemon pokemon) - Overrides:
drawPokemonSpriteItem
in classPCMode
-
drawCursor
public void drawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) - Overrides:
drawCursor
in classPCMode
-
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 classPCMode
-