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
The PC 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 TypeFieldDescriptionprotected ImageButton
protected boolean
protected ImageClickableButton
protected net.minecraft.resources.ResourceLocation
protected ImageClickableButton
protected ArrowButton
protected net.minecraft.client.gui.components.EditBox
protected ImageClickableButton
protected ArrowButton
static PCStorageSearch
protected net.minecraft.client.gui.components.EditBox
protected PCToolbar
protected static final int
Fields inherited from class com.pixelmonmod.pixelmon.client.gui.pc.PokemonScreen
anchorTop, boxListScreen, boxNumber, EVENT_CONSUMED_FLAG, filter, footerBottom, footerLeft, footerRight, footerTop, futureActions, MULTI_SELECT_PCMODE, PADDING_LEFT, PADDING_TOP, pastActions, PC_MODES, PC_NUM_HEIGHT, PC_NUM_WIDTH, pcBottom, pcLeft, pcMode, pcModeIndex, pcRight, pcTop, popups, prevBoxNumber, SLOT_HEIGHT, SLOT_WIDTH, storage, summaryScreen
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
ConstructorDescriptionPCScreen()
Initializes the PC GUI at last known position or 0.PCScreen
(StoragePosition selected) Initializes the PC GUI at the given position or last position. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(net.minecraft.client.gui.components.Button button) boolean
charTyped
(char p_231042_1_, int p_231042_2_) void
protected void
closeName
(boolean save) protected void
protected void
void
init()
protected void
protected void
initSearch
(boolean resetTextValue) boolean
protected boolean
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double mouseX, double mouseY, int mouseButton) void
void
nextPCMode
(boolean forward) void
onClose()
void
onToolbarClicked
(net.minecraft.client.gui.components.Button btn, PCToolbar.ToolbarButtons type) protected void
openName()
void
void
openSortDialog
(int x, int y) void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) protected ContextMenu
void
setWallpaperSelect
(boolean state) protected void
switchWallpaper
(boolean forward) void
void
void
void
void
updateBox
(int boxNumber) protected void
updateName
(PCBox data) protected void
protected void
updateWallpaper
(PCBox data) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.pc.PokemonScreen
addPopup, boxPreviewColor, canMoveMultiple, clearFuture, clearPopups, clearSelected, done, drawBox, drawCursor, drawFooter, drawFooterBackground, drawHover, drawPopups, getFooterAt, getFooterAt, getFooterNumWidth, getFooterPosAt, getPCAt, getPCPosAt, getPokemon, getPosAt, getPositionCoordinates, getSelectedPositions, getSlotAt, getStorage, hasSelected, isSelected, loadHistory, mouseReleased, newPokechecker, posIsInRectArea, quickDepositOrWithdraw, redo, redoSort, removePopup, saveHistory, setFilter, setPCMode, sort, sort, tryToMoveMultiple, tryToMoveMultiple, tryToSwap, undo, undoSort, updateStorage
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, removed, 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
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, 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
-
WIDGET_MARGIN_TOP
protected static final int WIDGET_MARGIN_TOP- See Also:
-
search
-
toolbar
-
leftArrow
-
rightArrow
-
boxButton
-
advancedSearchButton
-
leftArrowWallpaper
-
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
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 classPokemonScreen
-
isSearchActive
protected boolean isSearchActive() -
updateToolbar
protected void updateToolbar() -
updateBox
public void updateBox(int boxNumber) -
goToPreviousBox
protected void goToPreviousBox() -
updateName
-
updateWallpaper
-
switchWallpaper
protected void switchWallpaper(boolean forward) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classnet.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 classPokemonScreen
-
nextPCMode
public void nextPCMode(boolean forward) - Overrides:
nextPCMode
in classPokemonScreen
-
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 interfacePCToolbarHost
-
openSortDialog
public void openSortDialog() -
openSortDialog
public void openSortDialog(int x, int y) -
sampleSortDialog
-
getToolbarAnchor
- Specified by:
getToolbarAnchor
in interfacePCToolbarHost
-
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 classPokemonScreen
-
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 classPokemonScreen
-
onClose
public void onClose()- Overrides:
onClose
in classPokemonScreen
-
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
-
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) - Specified by:
charTyped
in interfacenet.minecraft.client.gui.components.events.ContainerEventHandler
- Specified by:
charTyped
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-