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
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.DropDownScreen
dropDownManager, guiLeft, guiTop, xSize, ySizeFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSave values of input fields between screen resizesvoidclear()protected voidconfirmFilter(net.minecraft.client.gui.components.Button button) protected voidconfirmSearch(net.minecraft.client.gui.components.Button button) protected voiddrawBackgroundUnderMenus(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) Draws the screen background under the drop-down menus.String[]booleanvoidinit()protected voidinitAbility(int xPos, int yPos) protected voidinitCompatibleMove(int xPos, int yPos) protected voidinitEggGroup(int xPos, int yPos) protected voidinitGender(int xPos, int yPos) protected voidinitGeneration(int xPos, int yPos) protected voidinitHeldItem(int xPos, int yPos) protected voidinitKnownMove(int xPos, int yPos) protected voidinitNature(int xPos, int yPos) protected voidinitSpecies(int xPos, int yPos) protected voidinitTypes(int xPos, int yPos) booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) voidremoved()voidrender(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, removeDropDownMethods 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, onClose, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
inputFields
-
-
Constructor Details
-
AdvancedPCSearchScreen
-
-
Method Details
-
init
public void init()- Overrides:
initin classDropDownScreen
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Renderable- Overrides:
renderin classDropDownScreen
-
removed
public void removed()- Overrides:
removedin 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:
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.Screen
-
drawBackgroundUnderMenus
protected void drawBackgroundUnderMenus(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks, int mouseX, int mouseY) Description copied from class:DropDownScreenDraws the screen background under the drop-down menus. Disables mouse hovering if over a menu.- Specified by:
drawBackgroundUnderMenusin classDropDownScreen- Parameters:
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
-