Package net.minecraft.realms
Class RealmsObjectSelectionList<E extends ObjectSelectionList.Entry<E>>
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<E>
net.minecraft.realms.RealmsObjectSelectionList<E>
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,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 class net.minecraft.client.gui.components.AbstractSelectionList
AbstractSelectionList.SelectionDirection
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 class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
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_) 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
changeFocus, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntryToTop, centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getHovered, getLeft, getMaxScroll, getRight, getRowRight, getScrollAmount, getScrollBottom, getSelected, getTop, getWidth, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, narrateListElementPosition, narrationPriority, refreshSelection, remove, removeEntry, removeEntryFromTop, render, renderBackground, renderDecorations, renderHeader, renderItem, renderList, renderSelection, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocused
Methods 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, vLine
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, keyReleased, magicalSpecialHackyFocus, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
-
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_) -
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()
-