Class AdvancedPCSearchScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.pixelmonmod.pixelmon.client.gui.widgets.DropDownScreen
com.pixelmonmod.pixelmon.client.gui.pc.AdvancedPCSearchScreen
- All Implemented Interfaces:
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
Modifier and TypeClassDescriptionprotected static class
protected static class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.DropDownScreen
dropDownManager, guiLeft, guiTop, xSize, ySize
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 TypeMethodDescriptionprotected void
Save values of input fields between screen resizesvoid
clear()
protected void
confirmFilter
(net.minecraft.client.gui.components.Button button) protected void
confirmSearch
(net.minecraft.client.gui.components.Button button) protected void
drawBackgroundUnderMenus
(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) Draws the screen background under the drop-down menus.String[]
boolean
void
init()
protected void
initAbility
(int xPos, int yPos) protected void
initCompatibleMove
(int xPos, int yPos) protected void
initEggGroup
(int xPos, int yPos) protected void
initGender
(int xPos, int yPos) protected void
initGeneration
(int xPos, int yPos) protected void
initHeldItem
(int xPos, int yPos) protected void
initKnownMove
(int xPos, int yPos) protected void
initNature
(int xPos, int yPos) protected void
initSpecies
(int xPos, int yPos) protected void
initTypes
(int xPos, int yPos) boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) void
removed()
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.DropDownScreen
addDropDown, disableMenus, drawGuiContainerBackgroundLayer, drawGuiContainerForegroundLayer, isPauseScreen, mouseClicked, mouseClickedUnderMenus, mouseDragged, mouseScrolled, removeDropDown
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, mouseReleased, 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
-
inputFields
-
-
Constructor Details
-
AdvancedPCSearchScreen
-
-
Method Details
-
init
public void init()- Overrides:
init
in classDropDownScreen
-
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 classDropDownScreen
-
removed
public void removed()- Overrides:
removed
in classnet.minecraft.client.gui.screens.Screen
-
cacheValues
protected void cacheValues()Save values of input fields between screen resizes -
initSpecies
protected void initSpecies(int xPos, int yPos) -
initTypes
protected void initTypes(int xPos, int yPos) -
initKnownMove
protected void initKnownMove(int xPos, int yPos) -
initCompatibleMove
protected void initCompatibleMove(int xPos, int yPos) -
initGender
protected void initGender(int xPos, int yPos) -
initAbility
protected void initAbility(int xPos, int yPos) -
initNature
protected void initNature(int xPos, int yPos) -
initHeldItem
protected void initHeldItem(int xPos, int yPos) -
initEggGroup
protected void initEggGroup(int xPos, int yPos) -
initGeneration
protected void initGeneration(int xPos, int yPos) -
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - 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.Screen
-
drawBackgroundUnderMenus
protected void drawBackgroundUnderMenus(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) Description copied from class:DropDownScreen
Draws the screen background under the drop-down menus. Disables mouse hovering if over a menu.- Specified by:
drawBackgroundUnderMenus
in classDropDownScreen
partialTicks
- The current number of partial ticks.mouseX
- The x coordinate of the mouse.mouseY
- The y coordinate of the mouse.
-
clear
public void clear() -
confirmSearch
protected void confirmSearch(net.minecraft.client.gui.components.Button button) -
confirmFilter
protected void confirmFilter(net.minecraft.client.gui.components.Button button) -
hasValues
public boolean hasValues() -
getQuerys
-
getStringQuery
-