Class PCScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.pc.PokemonScreen
com.pixelmonmod.pixelmon.client.gui.pc.PCScreen
All Implemented Interfaces:
HideMouse, PCToolbarHost, 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 PCScreen extends PokemonScreen implements PCToolbarHost
The PC GUI.
  • Field Details

    • WIDGET_MARGIN_TOP

      protected static final int WIDGET_MARGIN_TOP
      See Also:
    • toolbar

      protected PCToolbar toolbar
    • leftArrow

      protected ImageClickableButton leftArrow
    • rightArrow

      protected ImageClickableButton rightArrow
    • boxButton

      protected ImageClickableButton boxButton
    • advancedSearchButton

      protected ImageButton advancedSearchButton
    • leftArrowWallpaper

      protected ArrowButton leftArrowWallpaper
    • rightArrowWallpaper

      protected ArrowButton rightArrowWallpaper
    • nameField

      protected net.minecraft.client.gui.components.EditBox nameField
    • searchField

      protected net.minecraft.client.gui.components.EditBox searchField
    • boxWallpaper

      protected net.minecraft.resources.ResourceLocation boxWallpaper
    • blockTyping

      protected boolean blockTyping
  • Constructor Details

    • PCScreen

      public PCScreen(@Nullable StoragePosition selected)
      Initializes the PC GUI at the given position or last position.
    • PCScreen

      public PCScreen()
      Initializes the PC GUI at last known position or 0.
  • Method Details

    • init

      public void init()
      Overrides:
      init in class PokemonScreen
    • isSearchActive

      protected boolean isSearchActive()
    • updateToolbar

      protected void updateToolbar()
    • updateBox

      public void updateBox(int boxNumber)
    • goToPreviousBox

      protected void goToPreviousBox()
    • updateName

      protected void updateName(PCBox data)
    • updateWallpaper

      protected void updateWallpaper(PCBox data)
    • switchWallpaper

      protected void switchWallpaper(boolean forward)
    • isPauseScreen

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

      public void actionPerformed(net.minecraft.client.gui.components.Button button)
    • toggleSearch

      public void toggleSearch()
    • initSearch

      protected void initSearch()
    • initSearch

      protected void initSearch(boolean resetTextValue)
    • closeSearch

      protected void closeSearch()
    • closeName

      protected void closeName(boolean save)
    • openName

      protected void openName()
    • toggleRename

      public void toggleRename()
    • toggleBoxView

      public void toggleBoxView()
    • nextPCMode

      public void nextPCMode()
      Overrides:
      nextPCMode in class PokemonScreen
    • nextPCMode

      public void nextPCMode(boolean forward)
      Overrides:
      nextPCMode in class PokemonScreen
    • setWallpaperSelect

      public void setWallpaperSelect(boolean state)
    • toggleWallpaperSelect

      public void toggleWallpaperSelect()
    • clearFilter

      public void clearFilter()
    • onToolbarClicked

      public void onToolbarClicked(net.minecraft.client.gui.components.Button btn, PCToolbar.ToolbarButtons type)
      Specified by:
      onToolbarClicked in interface PCToolbarHost
    • openSortDialog

      public void openSortDialog()
    • openSortDialog

      public void openSortDialog(int x, int y)
    • sampleSortDialog

      protected ContextMenu sampleSortDialog()
    • getToolbarAnchor

      public Point getToolbarAnchor()
      Specified by:
      getToolbarAnchor in interface PCToolbarHost
    • 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 PokemonScreen
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class PokemonScreen
    • onClose

      public void onClose()
      Overrides:
      onClose in class PokemonScreen
    • 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
    • charTyped

      public boolean charTyped(char p_231042_1_, int p_231042_2_)
      Specified by:
      charTyped in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      charTyped in interface net.minecraft.client.gui.components.events.GuiEventListener