Class PokemonListScreen
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
com.pixelmonmod.pixelmon.client.gui.spawner.PokemonListScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.layouts.LayoutElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
The list of Pokémon in the Pixelmon spawner.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
amountScrolled, bottom, COLOUR_BAR_ONE, COLOUR_BAR_THREE, COLOUR_BAR_TWO, DEFAULT_SLOT_HEIGHT, height, initialClickY, lastClicked, left, opaque, right, scrollMultiplier, selectedElement, slotHeight, top, widthFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, focused, hoverOrFocusedStartTime, isHovered, message, MIN_SCROLL_PERIOD, packedFGColor, PERIOD_PER_SCROLLED_PIXEL, tabOrderGroup, tooltip, tooltipMsDelay, UNSET_FG_COLOR, visible, wasHoveredOrFocused, x, yFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionPokemonListScreen(PixelmonSpawnerScreen gui, int width, int height, int top, int left) Initializes the list. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawSlot(net.minecraft.client.gui.GuiGraphics graphics, int index, int x, int yTop, int yMiddle) protected voidelementClicked(int index, boolean doubleClicked) protected float[]protected Colorprotected intgetSize()protected booleanisSelected(int element) protected voidupdateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
bindAmountScrolled, drawBackground, get255Color, getBottomIndex, getCenterX, getContentHeight, getCurrentSlot, getElementPosition, getMouseOverIndex, getTopIndex, isElementVisible, isMouseOver, isMouseOver, mouseClicked, mouseDragged, mouseScrolled, mouseScrolled, renderWidget, scrollToMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isValidClickButton, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods 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.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMovedMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
gui
-
selectedPokemon
-
-
Constructor Details
-
PokemonListScreen
Initializes the list.- Parameters:
gui- The Pixelmon spawner GUI that contains this list.width- The width of the list.height- The height of the list.top- The y coordinate of the top of the list.
-
-
Method Details
-
elementClicked
protected void elementClicked(int index, boolean doubleClicked) - Specified by:
elementClickedin classSlotBase
-
drawSlot
protected void drawSlot(net.minecraft.client.gui.GuiGraphics graphics, int index, int x, int yTop, int yMiddle) -
get1Color
protected float[] get1Color() -
getSize
protected int getSize() -
isSelected
protected boolean isSelected(int element) - Specified by:
isSelectedin classSlotBase
-
getSelectionColor
- Overrides:
getSelectionColorin classSlotBase
-
updateWidgetNarration
protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) - Specified by:
updateWidgetNarrationin classnet.minecraft.client.gui.components.AbstractWidget
-