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

    Constructors
    Constructor
    Description
    PokemonEditorIndividualScreen(List<Pokemon> uneditablePokemonList, List<Pokemon> editablePokemonList, Pokemon pokemonToEdit, int slot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
     
    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
     
    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
     
    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
     
    void
     

    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

      public PokemonEditorIndividualScreen(List<Pokemon> uneditablePokemonList, List<Pokemon> editablePokemonList, Pokemon pokemonToEdit, int slot)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen
    • reArrangeTabs

      public void reArrangeTabs()
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY)
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY)
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseDragged in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.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 interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.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 interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.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 class net.minecraft.client.gui.screens.Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.Screen
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class net.minecraft.client.gui.screens.Screen
    • handleResponse

      public void handleResponse(String error, String failedValue)
      Specified by:
      handleResponse in interface ImportRequestHandler
    • handleResponse

      public void handleResponse(Pokemon... pokemon)
      Specified by:
      handleResponse in interface ImportRequestHandler
    • getExportText

      public String getExportText()
      Gets exportable text for the current Pokémon.
      Specified by:
      getExportText in interface IImportableContainer
      Returns:
      Exportable text for the current Pokémon.
    • importText

      public String importText(String importText)
      Parses import text and saves it to the current Pokémon.
      Specified by:
      importText in interface IImportableContainer
      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 interface IImportableContainer
      Returns:
      The screen containing the import/export.
    • getUneditedPokemon

      public Pokemon getUneditedPokemon()
    • getEditablePokemon

      public Pokemon getEditablePokemon()
    • setEditablePokemon

      public void setEditablePokemon(Pokemon newEditablePokemon)
    • getServerStorageDisplayPokemonList

      public List<Pokemon> getServerStorageDisplayPokemonList()
    • getExtraColorMode

      public boolean getExtraColorMode()
    • setExtraColorMode

      public void setExtraColorMode(boolean extraColorMode)