Class TrainerDropListSlotScreen
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
com.pixelmonmod.pixelmon.client.gui.npcEditor.TrainerDropListSlotScreen
- 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
Slot container used for NPC Trainer drops.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
Fields 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, width
Fields 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, y
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
drawSlot
(net.minecraft.client.gui.GuiGraphics matrix, int var1, int var2, int var3, int var4) protected void
elementClicked
(int var1, boolean var2) protected float[]
protected int[]
protected int
getSize()
protected boolean
isSelected
(int var1) void
renderWidget
(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_) protected void
updateWidgetNarration
(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.SlotBase
bindAmountScrolled, drawBackground, getBottomIndex, getCenterX, getContentHeight, getCurrentSlot, getElementPosition, getMouseOverIndex, getSelectionColor, getTopIndex, isElementVisible, isMouseOver, isMouseOver, mouseClicked, mouseDragged, mouseScrolled, mouseScrolled, scrollTo
Methods 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, wrapDefaultNarrationMessage
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.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Constructor Details
-
TrainerDropListSlotScreen
Initializes a slot.- Parameters:
gui
- The GUI that contains the slot.
-
-
Method Details
-
getSize
protected int getSize() -
elementClicked
protected void elementClicked(int var1, boolean var2) - Specified by:
elementClicked
in classSlotBase
-
isSelected
protected boolean isSelected(int var1) - Specified by:
isSelected
in classSlotBase
-
get1Color
protected float[] get1Color() -
get255Color
protected int[] get255Color()- Overrides:
get255Color
in classSlotBase
-
drawSlot
protected void drawSlot(net.minecraft.client.gui.GuiGraphics matrix, int var1, int var2, int var3, int var4) -
renderWidget
public void renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_) - Overrides:
renderWidget
in classSlotBase
-
updateWidgetNarration
protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) - Specified by:
updateWidgetNarration
in classnet.minecraft.client.gui.components.AbstractWidget
-