Class PixelmonOverlayScreen
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.PixelmonOverlayScreen
The party interface when not in battle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic OverlayScreenStateWhether the overlay is minimized.static final List<KeybindIcon> static booleanWhether the overlay is visible.static StringThe name of the selectedMoveSkill.static final intstatic intThe entity id the pokemon is targeting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMoves the currently selection backwards if it is invalid.static UUIDGets the UUID of the player displayed in the message.static voidhideSpectateMessage(UUID playerUuid) Hides the spectate message.static voidTicks the fading in/out of the spectate message.voidonRenderGameOverlay(net.neoforged.neoforge.client.event.RenderGuiEvent.Pre event) Renders the overlay.static voidSelects the next Pokémon in the party.static voidSelects the previous Pokémon in the party.static voidshowSpectateMessage(UUID playerUuid) Displays the spectate message.
-
Field Details
-
SIDE_BAR_HEIGHT
public static final int SIDE_BAR_HEIGHT- See Also:
-
ICONS
-
guiState
Whether the overlay is minimized. -
selectedMoveSkill
The name of the selectedMoveSkill. -
targetId
public static int targetIdThe entity id the pokemon is targeting -
isVisible
public static boolean isVisibleWhether the overlay is visible.
-
-
Constructor Details
-
PixelmonOverlayScreen
public PixelmonOverlayScreen()
-
-
Method Details
-
onRenderGameOverlay
public void onRenderGameOverlay(net.neoforged.neoforge.client.event.RenderGuiEvent.Pre event) Renders the overlay.- Parameters:
event- The event that triggered the render.
-
selectNextPixelmon
public static void selectNextPixelmon()Selects the next Pokémon in the party. -
selectPreviousPixelmon
public static void selectPreviousPixelmon()Selects the previous Pokémon in the party. -
checkSelection
public static void checkSelection()Moves the currently selection backwards if it is invalid. -
showSpectateMessage
Displays the spectate message.- Parameters:
playerUuid- The UUID of the player displayed in the message.
-
hideSpectateMessage
Hides the spectate message.- Parameters:
playerUuid- The UUID of the player displayed in the message.
-
onPlayerTick
public static void onPlayerTick()Ticks the fading in/out of the spectate message. -
getCurrentSpectatingUUID
Gets the UUID of the player displayed in the message.- Returns:
- The UUID of the player displayed in the message.
-