Package net.minecraft.realms
Class RealmsObjectSelectionList<E extends ObjectSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ObjectSelectionList<E>
net.minecraft.realms.RealmsObjectSelectionList<E>
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,NarratableEntry
,NarrationSupplier
- Direct Known Subclasses:
RealmsBackupScreen.BackupObjectSelectionList
,RealmsMainScreen.RealmSelectionList
,RealmsPendingInvitesScreen.PendingInvitationSelectionList
,RealmsPlayerScreen.InvitedObjectSelectionList
,RealmsSelectFileToUploadScreen.WorldSelectionList
,RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList
public abstract class RealmsObjectSelectionList<E extends ObjectSelectionList.Entry<E>>
extends ObjectSelectionList<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.ObjectSelectionList
ObjectSelectionList.Entry<E extends ObjectSelectionList.Entry<E>>
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprotected
RealmsObjectSelectionList
(int p_120745_, int p_120746_, int p_120747_, int p_120748_, int p_120749_) -
Method Summary
Modifier and TypeMethodDescriptionint
void
clear()
int
int
int
int
getRowTop
(int p_120766_) int
int
void
itemClicked
(int p_120751_, int p_120752_, double p_120753_, double p_120754_, int p_120755_, int p_275741_) void
replaceEntries
(Collection<E> p_120759_) void
selectItem
(int p_120750_) void
setSelectedItem
(int p_120768_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, enableScissor, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFirstElement, getFocused, getHeight, getHovered, getLeft, getMaxScroll, getRectangle, getRight, getRowBottom, getRowRight, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, render, renderBackground, renderDecorations, renderHeader, renderItem, renderList, renderSelection, setFocused, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
RealmsObjectSelectionList
protected RealmsObjectSelectionList(int p_120745_, int p_120746_, int p_120747_, int p_120748_, int p_120749_)
-
-
Method Details
-
setSelectedItem
public void setSelectedItem(int p_120768_) -
selectItem
public void selectItem(int p_120750_) -
itemClicked
public void itemClicked(int p_120751_, int p_120752_, double p_120753_, double p_120754_, int p_120755_, int p_275741_) -
getMaxPosition
public int getMaxPosition()- Overrides:
getMaxPosition
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getScrollbarPosition
public int getScrollbarPosition()- Overrides:
getScrollbarPosition
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
replaceEntries
- Overrides:
replaceEntries
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getItemCount
public int getItemCount()- Overrides:
getItemCount
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowTop
public int getRowTop(int p_120766_) - Overrides:
getRowTop
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowLeft
public int getRowLeft()- Overrides:
getRowLeft
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
addEntry
- Overrides:
addEntry
in classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
clear
public void clear()
-