Class ConfigurationScreen.ConfigurationListScreen.ListLabelWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.neoforged.neoforge.client.gui.ConfigurationScreen.ConfigurationListScreen.ListLabelWidget
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
- Enclosing class:
ConfigurationScreen.ConfigurationListScreen<T>
public class ConfigurationScreen.ConfigurationListScreen.ListLabelWidget
extends AbstractContainerWidget
A widget to be used as a label in a list of configuration values.
It includes buttons for "move element up", "move element down", and "delete element" as well as a label.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Button
protected final Button
protected final int
protected final boolean
protected final boolean
protected final StringWidget
protected final Button
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionListLabelWidget
(int x, int y, int width, int height, Component labelText, int idx) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
List
<? extends GuiEventListener> children()
(package private) void
(package private) void
protected void
renderWidget
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
setHeight
(int pHeight) void
setSize
(int pWidth, int pHeight) void
setWidth
(int pWidth) void
setX
(int pX) void
setY
(int pY) (package private) void
protected void
protected void
updateWidgetNarration
(NarrationElementOutput pNarrationElementOutput) Methods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
getFocused, isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setDragging, setFocused, setFocused
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setMessage, setRectangle, setTabOrderGroup, setTooltip, setTooltipDelay, 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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
Methods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
upButton
-
downButton
-
delButton
-
label
-
idx
protected final int idx -
isFirst
protected final boolean isFirst -
isLast
protected final boolean isLast
-
-
Constructor Details
-
ListLabelWidget
-
-
Method Details
-
setX
public void setX(int pX) - Specified by:
setX
in interfaceLayoutElement
- Overrides:
setX
in classAbstractWidget
-
setY
public void setY(int pY) - Specified by:
setY
in interfaceLayoutElement
- Overrides:
setY
in classAbstractWidget
-
setHeight
public void setHeight(int pHeight) - Overrides:
setHeight
in classAbstractWidget
-
setWidth
public void setWidth(int pWidth) - Overrides:
setWidth
in classAbstractWidget
-
setSize
public void setSize(int pWidth, int pHeight) - Overrides:
setSize
in classAbstractWidget
-
updateLayout
protected void updateLayout() -
up
-
down
-
rem
-
children
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-
checkButtons
protected void checkButtons() -
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-