Class DayCareScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen<DayCareContainer>
com.pixelmonmod.pixelmon.client.gui.daycare.DayCareScreen
All Implemented Interfaces:
InventoryPixelmonBase, 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, net.minecraft.client.gui.screens.inventory.MenuAccess<DayCareContainer>

public class DayCareScreen extends net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen<DayCareContainer> implements InventoryPixelmonBase
  • 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
    Modifier and Type
    Field
    Description
    static final DayCareSlot[]
     

    Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos

    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
    DayCareScreen(DayCareContainer container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.client.gui.components.Renderable>
    Gets the list of buttons on the GUI.
    int
    Gets the x coordinate of the left side of the GUI.
    float
    Gets the z coordinate of the inventory.
    void
     
    boolean
     
    boolean
    mouseClicked(double x, double y, int mouseButton)
     
    boolean
    mouseReleased(double mouseX, double mouseY, int button)
     
    void
    offsetGUILeft(int offset)
    Adds an amount to the x coordinate of the left side of the GUI.
    void
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
    Calls the superclass's drawScreen().
    protected void
    renderBg(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY)
     
    protected void
    renderLabels(net.minecraft.client.gui.GuiGraphics p_230451_1_, int p_230451_2_, int p_230451_3_)
     
    void
     
    void
     
    void
    setChild(Pokemon child, boolean showPotentialShiny)
     
    void
     

    Methods inherited from class net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen

    canSeeEffects

    Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, hasClickedOutside, isHovering, keyPressed, mouseDragged, onClose, removed, renderBackground, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked

    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, removeWidget, renderDirtBackground, renderTransparentBackground, 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, mouseScrolled, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

  • Constructor Details

    • DayCareScreen

      public DayCareScreen(DayCareContainer container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks)
      Description copied from interface: InventoryPixelmonBase
      Calls the superclass's drawScreen().
      Specified by:
      render in interface InventoryPixelmonBase
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen<DayCareContainer>
      mouseX - The x coordinate of the mouse.
      mouseY - The y coordinate of the mouse.
      partialTicks - The current amount of partial ticks.
    • mouseClicked

      public boolean mouseClicked(double x, double y, 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 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • 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
      Overrides:
      mouseReleased in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • renderBg

      protected void renderBg(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY)
      Specified by:
      renderBg in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • setChild

      public void setChild(Pokemon child, boolean showPotentialShiny)
    • renderLabels

      protected void renderLabels(net.minecraft.client.gui.GuiGraphics p_230451_1_, int p_230451_2_, int p_230451_3_)
      Overrides:
      renderLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<DayCareContainer>
    • getZLevel

      public float getZLevel()
      Description copied from interface: InventoryPixelmonBase
      Gets the z coordinate of the inventory.
      Specified by:
      getZLevel in interface InventoryPixelmonBase
    • getGUILeft

      public int getGUILeft()
      Description copied from interface: InventoryPixelmonBase
      Gets the x coordinate of the left side of the GUI.
      Specified by:
      getGUILeft in interface InventoryPixelmonBase
      Returns:
      The x coordinate of the left side of the GUI.
    • offsetGUILeft

      public void offsetGUILeft(int offset)
      Description copied from interface: InventoryPixelmonBase
      Adds an amount to the x coordinate of the left side of the GUI.
      Specified by:
      offsetGUILeft in interface InventoryPixelmonBase
      Parameters:
      offset - The amount to add to the x coordinate of the left side of the GUI.
    • getButtonList

      public List<net.minecraft.client.gui.components.Renderable> getButtonList()
      Description copied from interface: InventoryPixelmonBase
      Gets the list of buttons on the GUI.
      Specified by:
      getButtonList in interface InventoryPixelmonBase
      Returns:
      The list of buttons on the GUI.
    • refreshSearchResults

      public void refreshSearchResults()
      Specified by:
      refreshSearchResults in interface InventoryPixelmonBase
    • setAndSelectBox

      public void setAndSelectBox(DayCareBox box)
    • setBox

      public void setBox(DayCareBox box)