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, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancursorWithinBoundsOfPokemonModelAnimationTypeCycleButton(int mouseX, int mouseY) booleancursorWithinBoundsOfPokemonModelBackground(int mouseX, int mouseY) Gets exportable text for the current Pokémon.booleannet.minecraft.client.gui.screens.ScreenReturns the screen containing the import/export.voidhandleResponse(Pokemon... pokemon) voidhandleResponse(String error, String failedValue) importText(String importText) Parses import text and saves it to the current Pokémon.protected voidinit()booleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) booleanmouseReleased(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) booleanmouseWithinRenderingBackground(double mouseX, double mouseY) voidonClose()voidvoidrender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidrenderDebugAreaOfScreenRectangle(net.minecraft.client.gui.GuiGraphics graphics) voidrenderHeldItemSprite(net.minecraft.client.gui.GuiGraphics graphics) voidrenderHiddenPowerTypeImage(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) voidrenderHiddenPowerTypeTooltip(net.minecraft.client.gui.GuiGraphics graphics, Element hiddenPowerType, int mouseX, int mouseY, AtomicInteger imageX, AtomicInteger imageY, int typeImageWidthAndHeight) voidrenderNatureStatIncreaseAndDecrease(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) voidrenderPokeBallSprite(net.minecraft.client.gui.GuiGraphics graphics) voidrenderPokemonModel(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks) voidrenderPokemonModelCycleButton(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidrenderPokemonSprite(net.minecraft.client.gui.GuiGraphics graphics) voidrenderTransparentBackground(net.minecraft.client.gui.GuiGraphics graphics) voidsetEditablePokemon(Pokemon newEditablePokemon) voidsetExtraColorMode(boolean extraColorMode) voidsetHandCursorSpriteWhileOverPokemonModel(int mouseX, int mouseY) voidtick()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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface com.pixelmonmod.pixelmon.client.gui.pokemoneditor.IImportableContainer
getPokemon, setPokemonMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
PokemonEditorIndividualScreen
-
-
Method Details
-
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.Screen
-
reArrangeTabs
public void reArrangeTabs() -
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.gui.screens.Screen
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) - Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) - Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int button) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin 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:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.minecraft.client.gui.screens.Screen
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin 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:
renderTransparentBackgroundin classnet.minecraft.client.gui.screens.Screen
-
onClose
public void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classnet.minecraft.client.gui.screens.Screen
-
handleResponse
- Specified by:
handleResponsein interfaceImportRequestHandler
-
handleResponse
- Specified by:
handleResponsein interfaceImportRequestHandler
-
getExportText
Gets exportable text for the current Pokémon.- Specified by:
getExportTextin interfaceIImportableContainer- Returns:
- Exportable text for the current Pokémon.
-
importText
Parses import text and saves it to the current Pokémon.- Specified by:
importTextin 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:
getScreenin interfaceIImportableContainer- Returns:
- The screen containing the import/export.
-
getUneditedPokemon
-
getEditablePokemon
-
setEditablePokemon
-
getServerStorageDisplayPokemonList
-
getExtraColorMode
public boolean getExtraColorMode() -
setExtraColorMode
public void setExtraColorMode(boolean extraColorMode)
-