Class ConfigScreenList
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ObjectSelectionList<ConfigScreenList.Entry>
com.simibubi.create.foundation.config.ui.ConfigScreenList
- All Implemented Interfaces:
TickableGuiEventListener,net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Widget,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
public class ConfigScreenList
extends net.minecraft.client.gui.components.ObjectSelectionList<ConfigScreenList.Entry>
implements TickableGuiEventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.components.AbstractSelectionList
net.minecraft.client.gui.components.AbstractSelectionList.SelectionDirectionNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionConfigScreenList(net.minecraft.client.Minecraft client, int width, int height, int top, int bottom, int elementHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidbumpCog(float force) intprotected intbooleanmouseClicked(double x, double y, int button) voidrender(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) protected voidrenderList(com.mojang.blaze3d.vertex.PoseStack p_238478_1_, int p_238478_2_, int p_238478_3_, int p_238478_4_, int p_238478_5_, float p_238478_6_) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getHovered, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, narrateListElementPosition, narrationPriority, refreshSelection, remove, removeEntry, renderBackground, renderDecorations, renderHeader, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods 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, keyReleased, magicalSpecialHackyFocus, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
-
Field Details
-
currentText
public static net.minecraft.client.gui.components.EditBox currentText
-
-
Constructor Details
-
ConfigScreenList
public ConfigScreenList(net.minecraft.client.Minecraft client, int width, int height, int top, int bottom, int elementHeight)
-
-
Method Details
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) - Specified by:
renderin interfacenet.minecraft.client.gui.components.Widget- Overrides:
renderin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigScreenList.Entry>
-
renderList
protected void renderList(com.mojang.blaze3d.vertex.PoseStack p_238478_1_, int p_238478_2_, int p_238478_3_, int p_238478_4_, int p_238478_5_, float p_238478_6_) - Overrides:
renderListin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigScreenList.Entry>
-
mouseClicked
public boolean mouseClicked(double x, double y, int button) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigScreenList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigScreenList.Entry>
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPositionin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigScreenList.Entry>
-
tick
public void tick()- Specified by:
tickin interfaceTickableGuiEventListener
-
search
-
bumpCog
public void bumpCog(float force)
-