Class BoxListPCScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.pc.BoxListScreen
com.pixelmonmod.pixelmon.client.gui.pc.BoxListPCScreen
- 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
-
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 TypeFieldDescriptionprotected ImageClickableButton
protected ImageClickableButton
protected ImageClickableButton
Fields inherited from class com.pixelmonmod.pixelmon.client.gui.pc.BoxListScreen
activeBoxIndex, BOX_SCALE, BOXES_PER_COL, BOXES_PER_ROW, BOXLIST_PADDING_X, BOXLIST_PADDING_Y, boxListBottom, boxListLeft, boxListRight, boxListTop, currentPageIndex, NULL_INDEX, pcScreen, rangeDisplayInNumbers, relativeGrabPoint, SELECTED_BOX_OFFSET, selectedBox, selectedBoxIndex, SLOT_HEIGHT, SLOT_WIDTH, toolbar
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
drawWindowBackground
(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int w, int h) static Color
getPCColor
(net.minecraft.resources.ResourceLocation rl) void
init()
void
boolean
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) protected void
nextPage
(net.minecraft.client.gui.components.Button btn) void
void
onToolbarClicked
(net.minecraft.client.gui.components.Button btn, PCToolbar.ToolbarButtons type) protected void
previousPage
(net.minecraft.client.gui.components.Button btn) void
removed()
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) protected void
toggleBoxNameDisplay
(net.minecraft.client.gui.components.Button btn) void
void
void
updateWallpaper
(net.minecraft.resources.ResourceLocation wp) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pc.BoxListScreen
drawBoxList, drawBoxOutline, drawBoxSprite, drawCursor, finishSelection, getIndexFromPos, getPosFromIndex, getRelativeGrabPoint, goToBox, setActiveBox, setToolbarActive, trySwapBoxes, updateSelected, updateSelected
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, onClose, onFilesDrop, openLink, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, runNarration, scheduleNarration, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, shouldRunNarration, suppressNarration, tick, 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, mouseDragged, mouseReleased, 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
-
leftArrow
-
rightArrow
-
boxButton
-
-
Constructor Details
-
BoxListPCScreen
-
-
Method Details
-
init
public void init()- Overrides:
init
in classBoxListScreen
-
initToolbar
public void initToolbar() -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classnet.minecraft.client.gui.screens.Screen
-
previousPage
protected void previousPage(net.minecraft.client.gui.components.Button btn) -
nextPage
protected void nextPage(net.minecraft.client.gui.components.Button btn) -
toggleBoxNameDisplay
protected void toggleBoxNameDisplay(net.minecraft.client.gui.components.Button btn) -
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 classBoxListScreen
-
removed
public void removed()- Overrides:
removed
in classnet.minecraft.client.gui.screens.Screen
-
updateWallpaper
public void updateWallpaper(net.minecraft.resources.ResourceLocation wp) -
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
render
in interfacenet.minecraft.client.gui.components.Renderable
- Overrides:
render
in classnet.minecraft.client.gui.screens.Screen
-
drawWindowBackground
public static void drawWindowBackground(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int w, int h) -
getPCColor
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, 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 classBoxListScreen
-
getToolbarAnchor
- Specified by:
getToolbarAnchor
in interfacePCToolbarHost
-
toggleBoxView
public void toggleBoxView() -
nextPCMode
public void nextPCMode() -
toggleSearch
public void toggleSearch() -
clearFilter
public void clearFilter() -
onToolbarClicked
public void onToolbarClicked(net.minecraft.client.gui.components.Button btn, PCToolbar.ToolbarButtons type) - Specified by:
onToolbarClicked
in interfacePCToolbarHost
-