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<net.minecraft.world.inventory.InventoryMenu>
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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationFields 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, topPosFields inherited from class net.minecraft.client.gui.screens.Screen
children, CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionInventoryPixelmonExtendedScreen(net.minecraft.world.entity.player.Player player) Opens the party GUI. -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char typedChar, int keyCode) protected booleancheckTabClicked(SurvivalTab tab, double x, double y) protected booleancheckTabHovering(net.minecraft.client.gui.GuiGraphics guiGraphics, SurvivalTab survivalTab, int mouseX, int mouseY) voidList<net.minecraft.client.gui.components.Renderable> Gets the list of buttons on the GUI.intGets the x coordinate of the left side of the GUI.floatGets the z coordinate of the inventory.voidinit()booleankeyPressed(int keyCode, int scanCode, int modifiers) booleankeyReleased(int keyCode, int scanCode, int modifiers) booleanmouseClicked(double x, double y, int mouseButton) booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) voidmouseMoved(double mouseX, double mouseY) booleanmouseReleased(double mouseX, double mouseY, int state) booleanmouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) voidoffsetGUILeft(int offset) Adds an amount to the x coordinate of the left side of the GUI.voidvoidrender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) Calls the superclass's drawScreen().protected voidrenderBg(net.minecraft.client.gui.GuiGraphics graphics, float par1, int par2, int par3) protected voidrenderSpecialBg(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) protected voidrenderTabButton(net.minecraft.client.gui.GuiGraphics graphics, SurvivalTab tab) voidresize(net.minecraft.client.Minecraft minecraft, int width, int height) static voidselectTabOverride(int tab) Methods inherited from class net.minecraft.client.gui.screens.inventory.InventoryScreen
getRecipeBookComponent, hasClickedOutside, isHovering, recipesUpdated, renderEntityInInventory, renderEntityInInventoryFollowsAngle, renderEntityInInventoryFollowsMouse, renderLabels, slotClickedMethods inherited from class net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen
canSeeEffectsMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isPauseScreen, onClose, removed, renderBackground, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, createArrowEvent, createTabEvent, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, 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
getChildAt, getCurrentFocusPath, isFocused, nextFocusPath, setFocusedMethods 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
-
selectTabOverride
public static void selectTabOverride(int tab) -
init
public void init()- Overrides:
initin classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
resize
public void resize(net.minecraft.client.Minecraft minecraft, int width, int height) - Overrides:
resizein classnet.minecraft.client.gui.screens.Screen
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) Description copied from interface:InventoryPixelmonBaseCalls the superclass's drawScreen().- Specified by:
renderin interfaceInventoryPixelmonBase- Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classnet.minecraft.client.gui.screens.inventory.InventoryScreen- Parameters:
mouseX- The x coordinate of the mouse.mouseY- The y coordinate of the mouse.partialTicks- The current amount of partial ticks.
-
checkTabHovering
protected boolean checkTabHovering(net.minecraft.client.gui.GuiGraphics guiGraphics, SurvivalTab survivalTab, int mouseX, int mouseY) -
getCurrentlySelectedTab
-
containerTick
public void containerTick()- Overrides:
containerTickin 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:InventoryPixelmonBaseGets the z coordinate of the inventory.- Specified by:
getZLevelin interfaceInventoryPixelmonBase
-
getGUILeft
public int getGUILeft()Description copied from interface:InventoryPixelmonBaseGets the x coordinate of the left side of the GUI.- Specified by:
getGUILeftin interfaceInventoryPixelmonBase- Returns:
- The x coordinate of the left side of the GUI.
-
offsetGUILeft
public void offsetGUILeft(int offset) Description copied from interface:InventoryPixelmonBaseAdds an amount to the x coordinate of the left side of the GUI.- Specified by:
offsetGUILeftin 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:
renderBgin classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
renderTabButton
-
getButtonList
Description copied from interface:InventoryPixelmonBaseGets the list of buttons on the GUI.- Specified by:
getButtonListin interfaceInventoryPixelmonBase- Returns:
- The list of buttons on the GUI.
-
refreshSearchResults
public void refreshSearchResults()- Specified by:
refreshSearchResultsin interfaceInventoryPixelmonBase
-
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.inventory.InventoryScreen
-
keyReleased
public boolean keyReleased(int keyCode, int scanCode, int modifiers) - Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
charTyped
public boolean charTyped(char typedChar, int keyCode) - Specified by:
charTypedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
charTypedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
charTypedin classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
mouseClicked
public boolean mouseClicked(double x, double y, int mouseButton) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double deltaX, double deltaY) - 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 deltaX, double deltaY) - Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseDraggedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseDraggedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.InventoryMenu>
-
mouseMoved
public void mouseMoved(double mouseX, double mouseY) - Specified by:
mouseMovedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
checkTabClicked
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int state) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseReleasedin classnet.minecraft.client.gui.screens.inventory.InventoryScreen
-