Class PokemonEditorIndividualScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.pokemoneditor.PokemonEditorIndividualScreen
- All Implemented Interfaces:
IImportableContainer
,ImportRequestHandler
,net.minecraft.client.gui.components.events.ContainerEventHandler
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
public class PokemonEditorIndividualScreen
extends net.minecraft.client.gui.screens.Screen
implements ImportRequestHandler, IImportableContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, children, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cursorWithinBoundsOfPokemonModelAnimationTypeCycleButton
(int mouseX, int mouseY) boolean
cursorWithinBoundsOfPokemonModelBackground
(int mouseX, int mouseY) Gets exportable text for the current Pokémon.boolean
net.minecraft.client.gui.screens.Screen
Returns the screen containing the import/export.void
handleResponse
(Pokemon... pokemon) void
handleResponse
(String error, String failedValue) importText
(String importText) Parses import text and saves it to the current Pokémon.protected void
init()
boolean
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int button) boolean
mouseDragged
(double mouseX, double mouseY, int button, double dragX, double dragY) boolean
mouseReleased
(double mouseX, double mouseY, int button) boolean
mouseScrolled
(double mouseX, double mouseY, double scrollX, double scrollY) boolean
mouseWithinRenderingBackground
(double mouseX, double mouseY) void
onClose()
void
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
renderDebugAreaOfScreenRectangle
(net.minecraft.client.gui.GuiGraphics graphics) void
renderHeldItemSprite
(net.minecraft.client.gui.GuiGraphics graphics) void
renderHiddenPowerTypeImage
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
renderHiddenPowerTypeTooltip
(net.minecraft.client.gui.GuiGraphics graphics, Element hiddenPowerType, int mouseX, int mouseY, AtomicInteger imageX, AtomicInteger imageY, int typeImageWidthAndHeight) void
renderNatureStatIncreaseAndDecrease
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) void
renderPokeBallSprite
(net.minecraft.client.gui.GuiGraphics graphics) void
renderPokemonModel
(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks) void
renderPokemonModelCycleButton
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
renderPokemonSprite
(net.minecraft.client.gui.GuiGraphics graphics) void
renderTransparentBackground
(net.minecraft.client.gui.GuiGraphics graphics) void
setEditablePokemon
(Pokemon newEditablePokemon) void
setExtraColorMode
(boolean extraColorMode) void
setHandCursorSpriteWhileOverPokemonModel
(int mouseX, int mouseY) void
tick()
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addEventWidget, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, confirmLink, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, openLink, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, runNarration, scheduleNarration, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface com.pixelmonmod.pixelmon.client.gui.pokemoneditor.IImportableContainer
getPokemon, setPokemon
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
PokemonEditorIndividualScreen
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classnet.minecraft.client.gui.screens.Screen
-
reArrangeTabs
public void reArrangeTabs() -
tick
public void tick()- Overrides:
tick
in classnet.minecraft.client.gui.screens.Screen
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) - Specified by:
mouseScrolled
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseScrolled
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) - Specified by:
mouseDragged
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseDragged
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int button) - Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseWithinRenderingBackground
public boolean mouseWithinRenderingBackground(double mouseX, double mouseY) -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) - Specified by:
keyPressed
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
keyPressed
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
keyPressed
in classnet.minecraft.client.gui.screens.Screen
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.Screen
-
renderDebugAreaOfScreenRectangle
public void renderDebugAreaOfScreenRectangle(net.minecraft.client.gui.GuiGraphics graphics) -
renderPokemonModel
public void renderPokemonModel(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks) -
setHandCursorSpriteWhileOverPokemonModel
public void setHandCursorSpriteWhileOverPokemonModel(int mouseX, int mouseY) -
cursorWithinBoundsOfPokemonModelBackground
public boolean cursorWithinBoundsOfPokemonModelBackground(int mouseX, int mouseY) -
cursorWithinBoundsOfPokemonModelAnimationTypeCycleButton
public boolean cursorWithinBoundsOfPokemonModelAnimationTypeCycleButton(int mouseX, int mouseY) -
renderPokemonModelCycleButton
public void renderPokemonModelCycleButton(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) -
renderPokemonSprite
public void renderPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics) -
renderPokeBallSprite
public void renderPokeBallSprite(net.minecraft.client.gui.GuiGraphics graphics) -
renderHeldItemSprite
public void renderHeldItemSprite(net.minecraft.client.gui.GuiGraphics graphics) -
renderNatureStatIncreaseAndDecrease
public void renderNatureStatIncreaseAndDecrease(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) -
renderHiddenPowerTypeImage
public void renderHiddenPowerTypeImage(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) -
renderHiddenPowerTypeTooltip
public void renderHiddenPowerTypeTooltip(net.minecraft.client.gui.GuiGraphics graphics, Element hiddenPowerType, int mouseX, int mouseY, AtomicInteger imageX, AtomicInteger imageY, int typeImageWidthAndHeight) -
renderTransparentBackground
public void renderTransparentBackground(net.minecraft.client.gui.GuiGraphics graphics) - Overrides:
renderTransparentBackground
in classnet.minecraft.client.gui.screens.Screen
-
onClose
public void onClose()- Overrides:
onClose
in classnet.minecraft.client.gui.screens.Screen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classnet.minecraft.client.gui.screens.Screen
-
handleResponse
- Specified by:
handleResponse
in interfaceImportRequestHandler
-
handleResponse
- Specified by:
handleResponse
in interfaceImportRequestHandler
-
getExportText
Gets exportable text for the current Pokémon.- Specified by:
getExportText
in interfaceIImportableContainer
- Returns:
- Exportable text for the current Pokémon.
-
importText
Parses import text and saves it to the current Pokémon.- Specified by:
importText
in interfaceIImportableContainer
- Parameters:
importText
- The text to save to the current Pokémon.- Returns:
- Null if the import was successful, or an error description if the import failed.
-
getScreen
public net.minecraft.client.gui.screens.Screen getScreen()Returns the screen containing the import/export.- Specified by:
getScreen
in interfaceIImportableContainer
- Returns:
- The screen containing the import/export.
-
getUneditedPokemon
-
getEditablePokemon
-
setEditablePokemon
-
getServerStorageDisplayPokemonList
-
getExtraColorMode
public boolean getExtraColorMode() -
setExtraColorMode
public void setExtraColorMode(boolean extraColorMode)
-