Class RealmsSelectWorldTemplateScreen.WorldTemplateSelectionList
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraft.client.gui.widget.list.AbstractList<E>
-
- net.minecraft.client.gui.widget.list.ExtendedList<E>
-
- net.minecraft.realms.RealmsObjectSelectionList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
- com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen.WorldTemplateSelectionList
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
- Enclosing class:
- RealmsSelectWorldTemplateScreen
class RealmsSelectWorldTemplateScreen.WorldTemplateSelectionList extends RealmsObjectSelectionList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.ExtendedList
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>
-
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.AbstractList
AbstractList.Ordering
-
-
Field Summary
-
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description WorldTemplateSelectionList()
WorldTemplateSelectionList(java.lang.Iterable<WorldTemplate> p_i51726_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntry(WorldTemplate p_223876_1_)
WorldTemplate
get(int p_223877_1_)
int
getMaxPosition()
int
getRowWidth()
java.util.List<WorldTemplate>
getTemplates()
boolean
isEmpty()
boolean
isFocused()
boolean
mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
void
renderBackground(MatrixStack p_230433_1_)
void
selectItem(int p_231400_1_)
void
setSelected(RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry p_241215_1_)
-
Methods inherited from class net.minecraft.realms.RealmsObjectSelectionList
addEntry, clear, getItemCount, getRowLeft, getRowTop, getScrollbarPosition, itemClicked, replaceEntries, setSelectedItem
-
Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocus
-
Methods inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerScrollOn, children, clearEntries, clickedHeader, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getLeft, getMaxScroll, getRight, getRowRight, getScrollAmount, getSelected, getTop, getWidth, isMouseOver, isSelectedItem, keyPressed, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, refreshSelection, remove, removeEntry, render, renderDecorations, renderHeader, renderList, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, updateScrollingState, updateSize
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
-
-
-
Constructor Detail
-
WorldTemplateSelectionList
public WorldTemplateSelectionList()
-
WorldTemplateSelectionList
public WorldTemplateSelectionList(java.lang.Iterable<WorldTemplate> p_i51726_2_)
-
-
Method Detail
-
addEntry
public void addEntry(WorldTemplate p_223876_1_)
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
- Specified by:
mouseClicked
in interfaceIGuiEventListener
- Specified by:
mouseClicked
in interfaceINestedGuiEventHandler
- Overrides:
mouseClicked
in classAbstractList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
selectItem
public void selectItem(int p_231400_1_)
-
setSelected
public void setSelected(@Nullable RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry p_241215_1_)
- Overrides:
setSelected
in classAbstractList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
getMaxPosition
public int getMaxPosition()
-
getRowWidth
public int getRowWidth()
-
renderBackground
public void renderBackground(MatrixStack p_230433_1_)
- Overrides:
renderBackground
in classAbstractList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
isFocused
public boolean isFocused()
- Overrides:
isFocused
in classAbstractList<RealmsSelectWorldTemplateScreen.WorldTemplateSelectionEntry>
-
isEmpty
public boolean isEmpty()
-
get
public WorldTemplate get(int p_223877_1_)
-
getTemplates
public java.util.List<WorldTemplate> getTemplates()
-
-