Class ChatSelectionScreen.SelectionListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>
net.minecraft.client.gui.screen.report.ChatSelectionScreen.SelectionListWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,ParentElement,Selectable,MessagesListAdder.MessagesList<ReceivedMessage.ChatMessage>
- Enclosing class:
ChatSelectionScreen
@Environment(CLIENT)
public class ChatSelectionScreen.SelectionListWidget
extends AlwaysSelectedEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>
implements MessagesListAdder.MessagesList<ReceivedMessage.ChatMessage>
- Mappings:
Namespace Name official epd$aintermediary net/minecraft/class_7543$class_7544named net/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassprivate static final recordclassclassNested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirectionNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(int int2, ReceivedMessage.ChatMessage chatMessage) private voidaddSenderEntry(ReceivedMessage.ChatMessage message, boolean fromReportedPlayer) voidintintintprotected intprotected booleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.protected voidmoveSelection(EntryListWidget.MoveDirection direction) protected voidrenderEntry(MatrixStack matrices, int mouseX, int mouseY, float delta, int index, int x, int y, int entryWidth, int entryHeight) voidsetScrollAmount(double amount) private booleanprivate booleantryMoveSelection(EntryListWidget.MoveDirection direction) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
appendNarrations, changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, clickedHeader, drawSelectionHighlight, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectedEntry, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelectionIf, remove, removeEntry, removeEntryWithoutScrolling, render, renderBackground, renderDecorations, renderHeader, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderHorizontalShadows, setRenderSelection, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.report.MessagesListAdder.MessagesList
addMessagesMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocusMethods inherited from interface net.minecraft.client.gui.Selectable
isNarratable
-
Field Details
-
lastSenderEntryPair
@Nullable private @Nullable ChatSelectionScreen.SelectionListWidget.SenderEntryPair lastSenderEntryPair- Mappings:
Namespace Name Mixin selector official oLepd$a;o:Lepd$a$c;intermediary field_39593Lnet/minecraft/class_7543$class_7544;field_39593:Lnet/minecraft/class_7543$class_7544$class_7547;named lastSenderEntryPairLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;lastSenderEntryPair:Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$SenderEntryPair;
-
-
Constructor Details
-
SelectionListWidget
- Mappings:
Namespace Name Mixin selector official <init>Lepd$a;<init>(Lepd;Lefu;I)Vintermediary <init>Lnet/minecraft/class_7543$class_7544;<init>(Lnet/minecraft/class_7543;Lnet/minecraft/class_310;I)Vnamed <init>Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;<init>(Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen;Lnet/minecraft/client/MinecraftClient;I)V
-
-
Method Details
-
setScrollAmount
public void setScrollAmount(double amount) - Overrides:
setScrollAmountin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLehl;a(D)Vintermediary method_25307Lnet/minecraft/class_350;method_25307(D)Vnamed setScrollAmountLnet/minecraft/client/gui/widget/EntryListWidget;setScrollAmount(D)V
-
addMessage
- Specified by:
addMessagein interfaceMessagesListAdder.MessagesList<ReceivedMessage.ChatMessage>- Mappings:
Namespace Name Mixin selector official aLepd$a;a(ILevj$a;)Vintermediary method_45030Lnet/minecraft/class_7543$class_7544;method_45030(ILnet/minecraft/class_7557$class_7558;)Vnamed addMessageLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;addMessage(ILnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;)V
-
addSenderEntry
- Mappings:
Namespace Name Mixin selector official aLepd$a;a(Levj$a;Z)Vintermediary method_44511Lnet/minecraft/class_7543$class_7544;method_44511(Lnet/minecraft/class_7557$class_7558;Z)Vnamed addSenderEntryLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;addSenderEntry(Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;Z)V
-
addText
- Specified by:
addTextin interfaceMessagesListAdder.MessagesList<ReceivedMessage.ChatMessage>- Mappings:
Namespace Name Mixin selector official aLepc$a;a(Lrq;)Vintermediary method_44492Lnet/minecraft/class_7541$class_7542;method_44492(Lnet/minecraft/class_2561;)Vnamed addTextLnet/minecraft/client/report/MessagesListAdder$MessagesList;addText(Lnet/minecraft/text/Text;)V
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionXin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official dLehl;d()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official cLehl;c()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getDisplayedItemCount
public int getDisplayedItemCount()- Mappings:
Namespace Name Mixin selector official eLepd$a;e()Iintermediary method_44513Lnet/minecraft/class_7543$class_7544;method_44513()Inamed getDisplayedItemCountLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;getDisplayedItemCount()I
-
renderEntry
protected void renderEntry(MatrixStack matrices, int mouseX, int mouseY, float delta, int index, int x, int y, int entryWidth, int entryHeight) - Overrides:
renderEntryin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLehl;a(Leaq;IIFIIIII)Vintermediary method_44397Lnet/minecraft/class_350;method_44397(Lnet/minecraft/class_4587;IIFIIIII)Vnamed renderEntryLnet/minecraft/client/gui/widget/EntryListWidget;renderEntry(Lnet/minecraft/client/util/math/MatrixStack;IIFIIIII)V
-
shouldHighlight
- Mappings:
Namespace Name Mixin selector official aLepd$a;a(Lepd$a$b;)Zintermediary method_44693Lnet/minecraft/class_7543$class_7544;method_44693(Lnet/minecraft/class_7543$class_7544$class_7546;)Znamed shouldHighlightLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;shouldHighlight(Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;)Z
-
moveSelection
- Overrides:
moveSelectionin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLehl;a(Lehl$b;)Vintermediary method_25335Lnet/minecraft/class_350;method_25335(Lnet/minecraft/class_350$class_5403;)Vnamed moveSelectionLnet/minecraft/client/gui/widget/EntryListWidget;moveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)V
-
tryMoveSelection
- Mappings:
Namespace Name Mixin selector official bLepd$a;b(Lehl$b;)Zintermediary method_44512Lnet/minecraft/class_7543$class_7544;method_44512(Lnet/minecraft/class_350$class_5403;)Znamed tryMoveSelectionLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;tryMoveSelection(Lnet/minecraft/client/gui/widget/EntryListWidget$MoveDirection;)Z
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLeir;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
getContextMessageY
public int getContextMessageY()- Mappings:
Namespace Name Mixin selector official fLepd$a;f()Iintermediary method_44665Lnet/minecraft/class_7543$class_7544;method_44665()Inamed getContextMessageYLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;getContextMessageY()I
-
isFocused
protected boolean isFocused()- Overrides:
isFocusedin classEntryListWidget<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLehl;a()Zintermediary method_25316Lnet/minecraft/class_350;method_25316()Znamed isFocusedLnet/minecraft/client/gui/widget/EntryListWidget;isFocused()Z
-