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.class_350
net.minecraft.client.gui.widget.EntryListWidget

Field summary

Modifier and TypeField
private static final Identifier
MENU_LIST_BACKGROUND
field_49478
MENU_LIST_BACKGROUND_TEXTURE
private static final Identifier
INWORLD_MENU_LIST_BACKGROUND
field_49892
INWORLD_MENU_LIST_BACKGROUND_TEXTURE
private static final int
SEPARATOR_HEIGHT
field_62110
SPACER_HEIGHT
protected final MinecraftClient
minecraft
field_22740
client
protected final int
defaultEntryHeight
field_62109
itemHeight
private final List<E>
children
field_22739
children
protected boolean
centerListVertically
field_22744
centerListVertically
private E
selected
field_22751
selected
private E
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()
method_25334()
getSelectedOrNull()
public void
setSelected(E selected)
method_25313(E arg0)
setSelected(E entry)
public E
getFocused()
method_25399()
getFocused()
public final List<E>
children()
method_25396()
children()
protected void
sort(Comparator<E> comparator)
method_73372(Comparator<E> arg0)
sort(Comparator<E> comparator)
protected void
swap(int firstIndex, int secondIndex)
method_73368(int arg0, int arg1)
swapEntriesOnPositions(int pos1, int pos2)
protected void
clearEntries()
method_25339()
clearEntries()
protected void
clearEntriesExcept(E exception)
method_73374(E arg0)
clearEntriesExcept(E entryToKeep)
public void
replaceEntries(Collection<E> newChildren)
method_25314(Collection<E> arg0)
replaceEntries(Collection<E> collection)
private int
getFirstEntryY()
method_73376()
getYOfFirstEntry()
public int
getNextY()
method_73378()
getYOfNextEntry()
protected int
addEntry(E entry)
method_25321(E arg0)
addEntry(E entry)
protected int
addEntry(E entry, int height)
method_73370(E arg0, int arg1)
addEntry(E entry, int entryHeight)
protected void
addEntryToTop(E entry)
method_44399(E arg0)
addEntryToTop(E entry)
protected void
addEntryToTop(E entry, int height)
method_73375(E arg0, int arg1)
addEntryToTop(E entry, int entryHeight)
private void
repositionEntries()
method_73367()
recalculateAllChildrenPositions()
protected void
removeEntryFromTop(E entry)
method_44650(E arg0)
removeEntryWithoutScrolling(E entry)
protected int
getItemCount()
method_25340()
getEntryCount()
protected boolean
entriesCanBeSelected()
method_73379()
isEntrySelectionAllowed()
protected final E
getEntryAtPosition(double posX, double posY)
method_25308(double arg0, double arg1)
getEntryAtPosition(double x, double y)
public void
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)
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)
method_73369(int arg0, int arg1, int arg2, int arg3)
position(int width, int height, int x, int y)
protected int
contentHeight()
method_44395()
getContentsHeightWithPadding()
public void
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)
method_57713(class_332 arg0)
drawHeaderAndFooterSeparators(DrawContext context)
protected void
extractListBackground(GuiGraphicsExtractor graphics)
method_57715(class_332 arg0)
drawMenuListBackground(DrawContext context)
protected void
enableScissor(GuiGraphicsExtractor graphics)
method_49603(class_332 arg0)
enableScissor(DrawContext context)
protected void
scrollToEntry(E entry)
method_73377(E arg0)
scrollTo(E entry)
protected void
centerScrollOn(E entry)
method_25324(E arg0)
centerScrollOn(E entry)
private void
scroll(int amount)
method_25309(int arg0)
scroll(int amount)
public void
setScrollAmount(double scrollAmount)
method_44382(double arg0)
setScrollY(double arg0)
protected int
scrollBarX()
method_65507()
getScrollbarX()
public Optional<Element>
getChildAt(double x, double y)
method_19355(double arg0, double arg1)
hoveredElement(double arg0, double arg1)
public void
setFocused(GuiEventListener focused)
method_25395(class_364 arg0)
setFocused(Element arg0)
protected E
nextEntry(ScreenDirection dir)
method_48197(class_8028 arg0)
getNeighboringEntry(NavigationDirection direction)
protected E
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)
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)
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)
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)
method_44398(class_332 arg0, E arg1, int arg2)
drawSelectionHighlight(DrawContext context, E entry, int color)
public int
getRowLeft()
method_25342()
getRowLeft()
public int
getRowRight()
method_31383()
getRowRight()
public int
getRowTop(int row)
method_25337(int arg0)
getRowTop(int index)
public int
getRowBottom(int row)
method_25319(int arg0)
getRowBottom(int index)
public int
getRowWidth()
method_25322()
getRowWidth()
public Selectable$SelectionType
narrationPriority()
method_37018()
getType()
protected void
removeEntries(List<E> entries)
method_73373(List<E> arg0)
removeEntries(List<E> entries)
protected void
removeEntry(E entry)
method_25330(E arg0)
removeEntry(E entry)
protected E
getHovered()
method_37019()
getHoveredEntry()
private void
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)
method_37017(class_6382 arg0, E arg1)
appendNarrations(NarrationMessageBuilder builder, E entry)
public Element
getFocused()
method_25399()
getFocused()
private static boolean
lambda$nextEntry$0(AbstractSelectionList$Entry arg0)
method_48201(class_350$class_351 arg0)
method_48201(EntryListWidget$Entry entry)
private static boolean
lambda$clearEntriesExcept$0(AbstractSelectionList$Entry arg0, AbstractSelectionList$Entry arg1)
method_73371(class_350$class_351 arg0, class_350$class_351 arg1)
method_73371(EntryListWidget$Entry arg0, EntryListWidget$Entry entry)