net.minecraft.client.gui.components

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

extends AbstractContainerWidget

All mapped superinterfaces:

Renderable, GuiEventListener, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier, ContainerEventHandler

ghp
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
a
MENU_LIST_BACKGROUND
field_49478
MENU_LIST_BACKGROUND_TEXTURE
private static final Identifier
f
INWORLD_MENU_LIST_BACKGROUND
field_49892
INWORLD_MENU_LIST_BACKGROUND_TEXTURE
private static final int
n
SEPARATOR_HEIGHT
field_62110
SPACER_HEIGHT
protected final Minecraft
c
minecraft
field_22740
client
protected final int
d
defaultEntryHeight
field_62109
itemHeight
private final List<E>
o
children
field_22739
children
protected boolean
e
centerListVertically
field_22744
centerListVertically
private E
p
selected
field_22751
selected
private E
q
hovered
field_33780
hoveredEntry

Constructor summary

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

Method summary

Modifier and TypeMethod
public E
q()
getSelected()
method_25334()
getSelectedOrNull()
public void
a(E arg0)
setSelected(E arg0)
method_25313(E arg0)
setSelected(E entry)
public E
r()
getFocused()
method_25336()
getFocused()
public final List<E>
aI_()
children()
method_25396()
children()
protected void
a(Comparator<E> arg0)
sort(Comparator<E> arg0)
method_73372(Comparator<E> arg0)
sort(Comparator<E> comparator)
protected void
a(int arg0, int arg1)
swap(int arg0, int arg1)
method_73368(int arg0, int arg1)
swapEntriesOnPositions(int pos1, int pos2)
protected void
s()
clearEntries()
method_25339()
clearEntries()
protected void
b(E arg0)
clearEntriesExcept(E arg0)
method_73374(E arg0)
clearEntriesExcept(E entryToKeep)
public void
a(Collection<E> arg0)
replaceEntries(Collection<E> arg0)
method_25314(Collection<E> arg0)
replaceEntries(Collection<E> collection)
private int
d()
getFirstEntryY()
method_73376()
getYOfFirstEntry()
public int
t()
getNextY()
method_73378()
getYOfNextEntry()
protected int
c(E arg0)
addEntry(E arg0)
method_25321(E arg0)
addEntry(E entry)
protected int
a(E arg0, int arg1)
addEntry(E arg0, int arg1)
method_73370(E arg0, int arg1)
addEntry(E entry, int entryHeight)
protected void
d(E arg0)
addEntryToTop(E arg0)
method_44399(E arg0)
addEntryToTop(E entry)
protected void
b(E arg0, int arg1)
addEntryToTop(E arg0, int arg1)
method_73375(E arg0, int arg1)
addEntryToTop(E entry, int entryHeight)
private void
I()
repositionEntries()
method_73367()
recalculateAllChildrenPositions()
protected void
e(E arg0)
removeEntryFromTop(E arg0)
method_44650(E arg0)
removeEntryWithoutScrolling(E entry)
protected int
u()
getItemCount()
method_25340()
getEntryCount()
protected boolean
v()
entriesCanBeSelected()
method_73379()
isEntrySelectionAllowed()
protected final E
b(double arg0, double arg1)
getEntryAtPosition(double arg0, double arg1)
method_25308(double arg0, double arg1)
getEntryAtPosition(double x, double y)
public void
a(int arg0, gnm arg1)
updateSize(int arg0, HeaderAndFooterLayout arg1)
method_57712(int arg0, class_8132 arg1)
position(int width, ThreePartsLayoutWidget layout)
public void
a(int arg0, int arg1, int arg2)
updateSizeAndPosition(int arg0, int arg1, int arg2)
method_57714(int arg0, int arg1, int arg2)
position(int width, int height, int y)
public void
a(int arg0, int arg1, int arg2, int arg3)
updateSizeAndPosition(int arg0, int arg1, int arg2, int arg3)
method_73369(int arg0, int arg1, int arg2, int arg3)
position(int width, int height, int x, int y)
protected int
o()
contentHeight()
method_44395()
getContentsHeightWithPadding()
public void
a_(ghi arg0, int arg1, int arg2, float arg3)
renderWidget(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
b(ghi arg0)
renderListSeparators(GuiGraphics arg0)
method_57713(class_332 arg0)
drawHeaderAndFooterSeparators(DrawContext context)
protected void
a(ghi arg0)
renderListBackground(GuiGraphics arg0)
method_57715(class_332 arg0)
drawMenuListBackground(DrawContext context)
protected void
c(ghi arg0)
enableScissor(GuiGraphics arg0)
method_49603(class_332 arg0)
enableScissor(DrawContext context)
protected void
f(E arg0)
scrollToEntry(E arg0)
method_73377(E arg0)
scrollTo(E entry)
protected void
g(E arg0)
centerScrollOn(E arg0)
method_25324(E arg0)
centerScrollOn(E entry)
private void
h(int arg0)
scroll(int arg0)
method_25309(int arg0)
scroll(int amount)
public void
a(double arg0)
setScrollAmount(double arg0)
method_44382(double arg0)
setScrollY(double arg0)
protected double
p()
scrollRate()
method_44393()
getDeltaYPerScroll()
protected int
m()
scrollBarX()
method_65507()
getScrollbarX()
public Optional<GuiEventListener>
c(double arg0, double arg1)
getChildAt(double arg0, double arg1)
method_19355(double arg0, double arg1)
hoveredElement(double arg0, double arg1)
public void
b(boolean arg0)
setFocused(boolean arg0)
method_25365(boolean arg0)
setFocused(boolean arg0)
public void
a(gle arg0)
setFocused(GuiEventListener arg0)
method_25395(class_364 arg0)
setFocused(Element arg0)
protected E
a(goc arg0)
nextEntry(ScreenDirection arg0)
method_48197(class_8028 arg0)
getNeighboringEntry(NavigationDirection direction)
protected E
a(goc arg0, Predicate<E> arg1)
nextEntry(ScreenDirection arg0, Predicate<E> arg1)
method_48198(class_8028 arg0, Predicate<E> arg1)
getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate)
protected E
a(goc arg0, Predicate<E> arg1, E arg2)
nextEntry(ScreenDirection arg0, Predicate<E> arg1, E arg2)
method_48199(class_8028 arg0, Predicate<E> arg1, E arg2)
getNeighboringEntry(NavigationDirection direction, Predicate<E> predicate, E selected)
protected void
c(ghi arg0, int arg1, int arg2, float arg3)
renderListItems(GuiGraphics arg0, int arg1, int arg2, float arg3)
method_25311(class_332 arg0, int arg1, int arg2, float arg3)
renderList(DrawContext context, int mouseX, int mouseY, float deltaTicks)
protected void
a(ghi arg0, int arg1, int arg2, float arg3, E arg4)
renderItem(GuiGraphics arg0, int arg1, int arg2, float arg3, E arg4)
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
a(ghi arg0, E arg1, int arg2)
renderSelection(GuiGraphics arg0, E arg1, int arg2)
method_44398(class_332 arg0, E arg1, int arg2)
drawSelectionHighlight(DrawContext context, E entry, int color)
public int
w()
getRowLeft()
method_25342()
getRowLeft()
public int
x()
getRowRight()
method_31383()
getRowRight()
public int
a(int arg0)
getRowTop(int arg0)
method_25337(int arg0)
getRowTop(int index)
public int
b(int arg0)
getRowBottom(int arg0)
method_25319(int arg0)
getRowBottom(int index)
public int
a()
getRowWidth()
method_25322()
getRowWidth()
public NarratableEntry$NarrationPriority
y()
narrationPriority()
method_37018()
getType()
protected void
a(List<E> arg0)
removeEntries(List<E> arg0)
method_73373(List<E> arg0)
removeEntries(List<E> entries)
protected void
h(E arg0)
removeEntry(E arg0)
method_25330(E arg0)
removeEntry(E entry)
protected E
z()
getHovered()
method_37019()
getHoveredEntry()
void
i(ghp$a<E> arg0)
bindEntryToSelf(AbstractSelectionList$Entry<E> arg0)
method_29621(class_350$class_351<E> arg0)
setEntryParentList(EntryListWidget$Entry<E> entry)
protected void
a(gnv arg0, E arg1)
narrateListElementPosition(NarrationElementOutput arg0, E arg1)
method_37017(class_6382 arg0, E arg1)
appendNarrations(NarrationMessageBuilder builder, E entry)