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,Widget,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.SelectionDirectionNested 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, y1Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRealmsObjectSelectionList(int p_120745_, int p_120746_, int p_120747_, int p_120748_, int p_120749_) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclear()intintintintgetRowTop(int p_120766_) intintvoiditemClicked(int p_120751_, int p_120752_, double p_120753_, double p_120754_, int p_120755_) voidreplaceEntries(Collection<E> p_120759_) voidselectItem(int p_120750_) voidsetSelectedItem(int p_120768_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
changeFocus, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
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, render, renderBackground, renderDecorations, renderHeader, renderList, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods 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:
getMaxPositionin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getScrollbarPosition
public int getScrollbarPosition()- Overrides:
getScrollbarPositionin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
replaceEntries
- Overrides:
replaceEntriesin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getItemCount
public int getItemCount()- Overrides:
getItemCountin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowTop
public int getRowTop(int p_120766_) - Overrides:
getRowTopin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
getRowLeft
public int getRowLeft()- Overrides:
getRowLeftin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
addEntry
- Overrides:
addEntryin classAbstractSelectionList<E extends ObjectSelectionList.Entry<E>>
-
clear
public void clear()
-