Class SingleSelectPCMode
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.pc.PCMode
com.pixelmonmod.pixelmon.client.gui.pc.SingleSelectPCMode
This class handles the selection of Pokémon, rendering of the cursor and sprites, and movement of selected Pokémon
while the cursor is set to only pick up one Pokémon at a time.
In game, this is labeled as "Default Mode".
The cursor is white during this mode.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected StoragePositionprotected Pokemon -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ArrayList<StoragePosition> loadedPositions) voidbooleanvoiddrawCursor(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) booleanbooleanonBoxClicked(int mouseButton, int boxIndex) booleanonMouseClicked(int mouseButton, StoragePosition clickedPosition) voidonStorageUpdated(PCStorage newStorage) voidsetSelected(StoragePosition selected) voidsetSelectedPokemon(Pokemon selectedPokemon) booleanundoRedo(List<StoragePosition> positionsBefore, List<StoragePosition> positionsAfter) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pc.PCMode
drawBox, drawCursor, drawCursorGrabbed, drawFooter, drawHealthBar, drawPokemonSprite, drawPokemonSprite, drawPokemonSpriteItem, drawPosition, drawPosition, drawSelectedPosition, getCursorYOffsetForGeneration, 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:
clearSelectedin classPCMode
-
setSelectedPokemon
-
activate
-
deactivate
public boolean deactivate()- Specified by:
deactivatein classPCMode- Returns:
- Whether the mode can safely be switched out of.
-
getSelectedPositions
- Specified by:
getSelectedPositionsin classPCMode
-
hasSelected
public boolean hasSelected()- Overrides:
hasSelectedin classPCMode
-
onStorageUpdated
- Specified by:
onStorageUpdatedin classPCMode
-
onMouseClicked
- Specified by:
onMouseClickedin classPCMode- Returns:
- Whether the event was consumed
-
onBoxClicked
public boolean onBoxClicked(int mouseButton, int boxIndex) - Specified by:
onBoxClickedin 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:
drawCursorin classPCMode
-