net.minecraft.client.gui.widget

public abstract class EntryListWidget<E extends EntryListWidget$Entry<E>>

extends ContainerWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable, ParentElement

net.minecraft.client.gui.components.AbstractSelectionList
net.minecraft.client.gui.components.AbstractSelectionList
net.minecraft.class_350
net.minecraft.client.gui.widget.EntryListWidget

Field summary

Modifier and TypeField
private static final Identifier
MENU_LIST_BACKGROUND
MENU_LIST_BACKGROUND
field_49478
MENU_LIST_BACKGROUND_TEXTURE
private static final Identifier
INWORLD_MENU_LIST_BACKGROUND
INWORLD_MENU_LIST_BACKGROUND
field_49892
INWORLD_MENU_LIST_BACKGROUND_TEXTURE
private static final int
SEPARATOR_HEIGHT
SEPARATOR_HEIGHT
field_62110
SPACER_HEIGHT
protected final MinecraftClient
minecraft
minecraft
field_22740
client
protected final int
defaultEntryHeight
defaultEntryHeight
field_62109
itemHeight
private final List<E>
children
children
field_22739
children
protected boolean
centerListVertically
centerListVertically
field_22744
centerListVertically
private E
selected
selected
field_22751
selected
private E
hovered
hovered
field_33780
hoveredEntry

Constructor summary

ModifierConstructor
public (MinecraftClient client, int width, int height, int y, int itemHeight)

Method summary

Modifier and TypeMethod
public E
getSelected()
getSelected()
method_25334()
getSelectedOrNull()
public void
setSelected(E selected)
setSelected(E selected)
method_25313(E arg0)
setSelected(E entry)
public E
getFocused()
getFocused()
method_25399()
getFocused()
public final List<E>
children()
children()
method_25396()
children()
protected void
sort(Comparator<E> comparator)
sort(Comparator<E> comparator)
method_73372(Comparator<E> arg0)
sort(Comparator<E> comparator)
protected void
swap(int firstIndex, int secondIndex)
swap(int firstIndex, int secondIndex)
method_73368(int arg0, int arg1)
swapEntriesOnPositions(int pos1, int pos2)
protected void
clearEntries()
clearEntries()
method_25339()
clearEntries()
protected void
clearEntriesExcept(E exception)
clearEntriesExcept(E exception)
method_73374(E arg0)
clearEntriesExcept(E entryToKeep)
public void
replaceEntries(Collection<E> newChildren)
replaceEntries(Collection<E> newChildren)
method_25314(Collection<E> arg0)
replaceEntries(Collection<E> collection)
private int
getFirstEntryY()
getFirstEntryY()
method_73376()
getYOfFirstEntry()
public int
getNextY()
getNextY()
method_73378()
getYOfNextEntry()
protected int
addEntry(E entry)
addEntry(E entry)
method_25321(E arg0)
addEntry(E entry)
protected int
addEntry(E entry, int height)
addEntry(E entry, int height)
method_73370(E arg0, int arg1)
addEntry(E entry, int entryHeight)
protected void
addEntryToTop(E entry)
addEntryToTop(E entry)
method_44399(E arg0)
addEntryToTop(E entry)
protected void
addEntryToTop(E entry, int height)
addEntryToTop(E entry, int height)
method_73375(E arg0, int arg1)
addEntryToTop(E entry, int entryHeight)
private void
repositionEntries()
repositionEntries()
method_73367()
recalculateAllChildrenPositions()
protected void
removeEntryFromTop(E entry)
removeEntryFromTop(E entry)
method_44650(E arg0)
removeEntryWithoutScrolling(E entry)
protected int
getItemCount()
getItemCount()
method_25340()
getEntryCount()
protected boolean
entriesCanBeSelected()
entriesCanBeSelected()
method_73379()
isEntrySelectionAllowed()
protected final E
getEntryAtPosition(double posX, double posY)
getEntryAtPosition(double posX, double posY)
method_25308(double arg0, double arg1)
getEntryAtPosition(double x, double y)
public void
updateSize(int width, HeaderAndFooterLayout layout)
updateSize(int width, HeaderAndFooterLayout layout)
method_57712(int arg0, class_8132 arg1)
position(int width, ThreePartsLayoutWidget layout)
public void
updateSizeAndPosition(int width, int height, int y)
updateSizeAndPosition(int width, int height, int y)
method_57714(int arg0, int arg1, int arg2)
position(int width, int height, int y)
public void
updateSizeAndPosition(int width, int height, int x, int y)
updateSizeAndPosition(int width, int height, int x, int y)
method_73369(int arg0, int arg1, int arg2, int arg3)
position(int width, int height, int x, int y)
protected int
contentHeight()
contentHeight()
method_44395()
getContentsHeightWithPadding()
public void
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
extractListSeparators(GuiGraphicsExtractor graphics)
extractListSeparators(GuiGraphicsExtractor graphics)
method_57713(class_332 arg0)
drawHeaderAndFooterSeparators(DrawContext context)
protected void
extractListBackground(GuiGraphicsExtractor graphics)
extractListBackground(GuiGraphicsExtractor graphics)
method_57715(class_332 arg0)
drawMenuListBackground(DrawContext context)
protected void
enableScissor(GuiGraphicsExtractor graphics)
enableScissor(GuiGraphicsExtractor graphics)
method_49603(class_332 arg0)
enableScissor(DrawContext context)
protected void
scrollToEntry(E entry)
scrollToEntry(E entry)
method_73377(E arg0)
scrollTo(E entry)
protected void
centerScrollOn(E entry)
centerScrollOn(E entry)
method_25324(E arg0)
centerScrollOn(E entry)
private void
scroll(int amount)
scroll(int amount)
method_25309(int arg0)
scroll(int amount)
public void
setScrollAmount(double scrollAmount)
setScrollAmount(double scrollAmount)
method_44382(double arg0)
setScrollY(double arg0)
protected int
scrollBarX()
scrollBarX()
method_65507()
getScrollbarX()
public Optional<Element>
getChildAt(double x, double y)
getChildAt(double x, double y)
method_19355(double arg0, double arg1)
hoveredElement(double arg0, double arg1)
public void
setFocused(GuiEventListener focused)
setFocused(GuiEventListener focused)
method_25395(class_364 arg0)
setFocused(Element arg0)
protected E
nextEntry(ScreenDirection dir)
nextEntry(ScreenDirection dir)
method_48197(class_8028 arg0)
getNeighboringEntry(NavigationDirection direction)
protected E
nextEntry(ScreenDirection dir, Predicate<E> canSelect)
nextEntry(ScreenDirection dir, Predicate<E> canSelect)
method_48198(class_8028 arg0, Predicate<E> arg1)
getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate)
protected E
nextEntry(ScreenDirection dir, Predicate<E> canSelect, E startEntry)
nextEntry(ScreenDirection dir, Predicate<E> canSelect, E startEntry)
method_48199(class_8028 arg0, Predicate<E> arg1, E arg2)
getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate, E selected)
protected void
extractListItems(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractListItems(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25311(class_332 arg0, int arg1, int arg2, float arg3)
renderList(DrawContext context, int mouseX, int mouseY, float deltaTicks)
protected void
extractItem(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a, E entry)
extractItem(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a, E entry)
method_44397(class_332 arg0, int arg1, int arg2, float arg3, E arg4)
renderEntry(DrawContext context, int mouseX, int mouseY, float delta, E entry)
protected void
extractSelection(GuiGraphicsExtractor graphics, E entry, int outlineColor)
extractSelection(GuiGraphicsExtractor graphics, E entry, int outlineColor)
method_44398(class_332 arg0, E arg1, int arg2)
drawSelectionHighlight(DrawContext context, E entry, int color)
public int
getRowLeft()
getRowLeft()
method_25342()
getRowLeft()
public int
getRowRight()
getRowRight()
method_31383()
getRowRight()
public int
getRowTop(int row)
getRowTop(int row)
method_25337(int arg0)
getRowTop(int index)
public int
getRowBottom(int row)
getRowBottom(int row)
method_25319(int arg0)
getRowBottom(int index)
public int
getRowWidth()
getRowWidth()
method_25322()
getRowWidth()
public Selectable$SelectionType
narrationPriority()
narrationPriority()
method_37018()
getType()
protected void
removeEntries(List<E> entries)
removeEntries(List<E> entries)
method_73373(List<E> arg0)
removeEntries(List<E> entries)
protected void
removeEntry(E entry)
removeEntry(E entry)
method_25330(E arg0)
removeEntry(E entry)
protected E
getHovered()
getHovered()
method_37019()
getHoveredEntry()
private void
bindEntryToSelf(AbstractSelectionList$Entry<E> entry)
bindEntryToSelf(AbstractSelectionList$Entry<E> entry)
method_29621(class_350$class_351<E> arg0)
setEntryParentList(EntryListWidget$Entry<E> entry)
protected void
narrateListElementPosition(NarrationElementOutput output, E element)
narrateListElementPosition(NarrationElementOutput output, E element)
method_37017(class_6382 arg0, E arg1)
appendNarrations(NarrationMessageBuilder builder, E entry)