Class InventoryPixelmonExtendedScreen
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<net.minecraft.world.inventory.InventoryMenu>
net.minecraft.client.gui.screens.inventory.InventoryScreen
com.pixelmonmod.pixelmon.client.gui.inventory.InventoryPixelmonExtendedScreen
- 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<net.minecraft.world.inventory.InventoryMenu>
,net.minecraft.client.gui.screens.recipebook.RecipeUpdateListener
public class InventoryPixelmonExtendedScreen
extends net.minecraft.client.gui.screens.inventory.InventoryScreen
implements InventoryPixelmonBase
The Pokémon party screen in the inventory GUI.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation
Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, 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
ConstructorDescriptionInventoryPixelmonExtendedScreen
(net.minecraft.world.entity.player.Player player) Opens the party GUI. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkTabClicked
(SurvivalTab tab, double x, double y) void
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
init()
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
keyReleased
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double x, double y, int mouseButton) boolean
mouseDragged
(double mouseX, double mouseY, int button, double deltaX, double deltaY) void
mouseMoved
(double mouseX, double mouseY) boolean
mouseReleased
(double mouseX, double mouseY, int state) boolean
mouseScrolled
(double mouseX, double mouseY, double deltaX, double deltaY) 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 par1, int par2, int par3) protected void
renderSpecialBg
(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) protected void
renderTabButton
(net.minecraft.client.gui.GuiGraphics graphics, SurvivalTab tab) void
tick()
Methods inherited from class net.minecraft.client.gui.screens.inventory.InventoryScreen
getRecipeBookComponent, hasClickedOutside, isHovering, recipesUpdated, renderEntityInInventory, renderEntityInInventoryFollowsMouse, renderLabels, slotClicked
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, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, isPauseScreen, onClose, removed, renderBackground, renderSlotHighlight, renderSlotHighlight, renderTooltip
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, magicalSpecialHackyFocus, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
INVENTORY_LOCATION
public static final net.minecraft.resources.ResourceLocation INVENTORY_LOCATION
-
-
Constructor Details
-
InventoryPixelmonExtendedScreen
public InventoryPixelmonExtendedScreen(net.minecraft.world.entity.player.Player player) Opens the party GUI.- Parameters:
player
- The player to open the party overlay for.
-
-
Method Details
-
init
public void init()- Overrides:
init
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
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 interfaceInventoryPixelmonBase
- Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.partialTicks
- The current amount of partial ticks.
-
containerTick
public void containerTick()- Overrides:
containerTick
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
renderSpecialBg
protected void renderSpecialBg(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) -
getZLevel
public float getZLevel()Description copied from interface:InventoryPixelmonBase
Gets the z coordinate of the inventory.- Specified by:
getZLevel
in interfaceInventoryPixelmonBase
-
getGUILeft
public int getGUILeft()Description copied from interface:InventoryPixelmonBase
Gets the x coordinate of the left side of the GUI.- Specified by:
getGUILeft
in interfaceInventoryPixelmonBase
- 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 interfaceInventoryPixelmonBase
- Parameters:
offset
- The amount to add to the x coordinate of the left side of the GUI.
-
renderBg
protected void renderBg(net.minecraft.client.gui.GuiGraphics graphics, float par1, int par2, int par3) - Overrides:
renderBg
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
renderTabButton
-
getButtonList
Description copied from interface:InventoryPixelmonBase
Gets the list of buttons on the GUI.- Specified by:
getButtonList
in interfaceInventoryPixelmonBase
- Returns:
- The list of buttons on the GUI.
-
refreshSearchResults
public void refreshSearchResults()- Specified by:
refreshSearchResults
in interfaceInventoryPixelmonBase
-
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.inventory.AbstractContainerScreen<net.minecraft.world.inventory.InventoryMenu>
-
keyReleased
public boolean keyReleased(int keyCode, int scanCode, int modifiers) - Specified by:
keyReleased
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
keyReleased
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseClicked
public boolean mouseClicked(double x, double y, int mouseButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) - 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 deltaX, double deltaY) - Specified by:
mouseDragged
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseDragged
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseDragged
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.InventoryMenu>
-
mouseMoved
public void mouseMoved(double mouseX, double mouseY) - Specified by:
mouseMoved
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
checkTabClicked
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int state) - Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
mouseReleased
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseReleased
in classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
tick
public void tick()- Overrides:
tick
in classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.InventoryMenu>
-