Package net.createmod.catnip.config.ui
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>
net.createmod.catnip.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 intintgetWidth()booleanmouseClicked(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 poseStack, int mouseX, int mouseY, float partialTick) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getEntry, getEntryAtPosition, getFocused, getHovered, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getScrollBottom, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, narrateListElementPosition, narrationPriority, refreshSelection, remove, removeEntry, removeEntryFromTop, renderBackground, renderDecorations, renderHeader, renderItem, renderSelection, 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, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, 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
@Nullable 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 poseStack, int mouseX, int mouseY, float partialTick) - 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>
-
getWidth
public int getWidth() -
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)
-