Class ChatSelectionScreen.ChatSelectionList
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
net.minecraft.client.gui.screens.reporting.ChatSelectionScreen.ChatSelectionList
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier,ChatSelectionLogFiller.Output
- Enclosing class:
ChatSelectionScreen
public class ChatSelectionScreen.ChatSelectionList
extends ObjectSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
implements ChatSelectionLogFiller.Output
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic class(package private) static final recordclassclassstatic classNested classes/interfaces inherited from class net.minecraft.client.gui.components.AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate @Nullable ChatSelectionScreen.ChatSelectionList.HeadingFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, defaultEntryHeight, minecraftFields inherited from class net.minecraft.client.gui.components.AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptDivider(Component p_239876_) voidacceptMessage(int p_242846_, LoggedChatMessage.Player p_242909_) intintintbooleankeyPressed(KeyEvent p_447333_) protected @Nullable ChatSelectionScreen.ChatSelectionList.EntrynextEntry(ScreenDirection p_265203_) protected voidrenderItem(GuiGraphics p_281532_, int p_239775_, int p_239776_, float p_239777_, ChatSelectionScreen.ChatSelectionList.Entry p_439092_) voidsetScrollAmount(double p_239021_) voidsetSelected(@Nullable ChatSelectionScreen.ChatSelectionList.Entry p_265249_) private booleanprivate voidupdateHeading(LoggedChatMessage.Player pLoggedPlayerChatMessage, boolean pCanReport) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateWidgetNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntry, addEntryToTop, addEntryToTop, centerScrollOn, children, clearEntries, clearEntriesExcept, contentHeight, enableScissor, entriesCanBeSelected, getChildAt, getEntryAtPosition, getFocused, getHovered, getItemCount, getNextY, getRowBottom, getRowLeft, getRowRight, getRowTop, getSelected, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, removeEntries, removeEntry, removeEntryFromTop, renderListBackground, renderListItems, renderListSeparators, renderSelection, renderWidget, replaceEntries, scrollBarX, scrollRate, scrollToEntry, setFocused, setFocused, sort, swap, updateSize, updateSizeAndPosition, updateSizeAndPositionMethods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDraggingMethods inherited from class net.minecraft.client.gui.components.AbstractScrollArea
isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollAmount, scrollbarVisible, scrollBarY, scrollerHeight, updateScrollingMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, onClick, onDrag, playButtonClickSound, playDownSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods 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, getCurrentFocusPath, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
getNarratablesMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
ITEM_HEIGHT
public static final int ITEM_HEIGHT- See Also:
-
previousHeading
-
-
Constructor Details
-
ChatSelectionList
-
-
Method Details
-
setScrollAmount
public void setScrollAmount(double p_239021_) - Overrides:
setScrollAmountin classAbstractSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
-
acceptMessage
- Specified by:
acceptMessagein interfaceChatSelectionLogFiller.Output
-
updateHeading
-
acceptDivider
- Specified by:
acceptDividerin interfaceChatSelectionLogFiller.Output
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
-
getMaxVisibleEntries
public int getMaxVisibleEntries() -
renderItem
protected void renderItem(GuiGraphics p_281532_, int p_239775_, int p_239776_, float p_239777_, ChatSelectionScreen.ChatSelectionList.Entry p_439092_) - Overrides:
renderItemin classAbstractSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
-
shouldHighlightEntry
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<ChatSelectionScreen.ChatSelectionList.Entry>
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener
-