Class SingleSelectPCMode
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
com.pixelmonmod.pixelmon.client.gui.pc.SingleSelectPCMode
-
Field Summary
Modifier and TypeFieldDescriptionprotected 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) 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) boolean
undoRedo
(List<StoragePosition> positionsBefore, List<StoragePosition> positionsAfter) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pc.PCMode
drawBox, drawCursor, drawCursorGrabbed, drawFooter, drawPokemonSprite, drawPokemonSprite, drawPokemonSprite, drawPokemonSprite, drawPokemonSprite, drawPokemonSprite, drawPokemonSpriteItem, drawPosition, drawPosition, drawSelectedPosition, isAllowedHoverLock, isAllowedPokechecker, isSelected, onBoxUpdated, onKeyPress, onMouseReleased
-
Field Details
-
name
- See Also:
-
selected
-
selectedPokemon
-
-
Constructor Details
-
SingleSelectPCMode
-
-
Method Details
-
setSelected
-
clearSelected
public void clearSelected()- Specified by:
clearSelected
in classPCMode
-
setSelectedPokemon
-
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
-
onMouseClicked
- Specified by:
onMouseClicked
in classPCMode
- Returns:
- Whether the event was consumed
-
onBoxClicked
public boolean onBoxClicked(int mouseButton, int boxIndex) - Specified by:
onBoxClicked
in classPCMode
-
undoRedo
public boolean undoRedo(List<StoragePosition> positionsBefore, List<StoragePosition> positionsAfter) -
drawCursor
public void drawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) - Overrides:
drawCursor
in classPCMode
-