Class ReportReasonSelectionScreen.ReasonSelectionList.Entry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>
net.minecraft.client.gui.screens.reporting.ReportReasonSelectionScreen.ReasonSelectionList.Entry
- All Implemented Interfaces:
GuiEventListener,TabOrderedElement,NarrationSupplier
- Enclosing class:
ReportReasonSelectionScreen.ReasonSelectionList
public class ReportReasonSelectionScreen.ReasonSelectionList.Entry
extends ObjectSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>
-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
listFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmouseClicked(double p_240021_, double p_240022_, int p_240023_) Called when a mouse button is clicked within the GUI element.voidrender(GuiGraphics p_281941_, int p_281450_, int p_281781_, int p_283334_, int p_283073_, int p_282523_, int p_282667_, int p_281567_, boolean p_282095_, float p_283305_) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocusedMethods 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.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
reason
-
-
Constructor Details
-
Entry
-
-
Method Details
-
render
public void render(GuiGraphics p_281941_, int p_281450_, int p_281781_, int p_283334_, int p_283073_, int p_282523_, int p_282667_, int p_281567_, boolean p_282095_, float p_283305_) - Specified by:
renderin classAbstractSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>
-
mouseClicked
public boolean mouseClicked(double p_240021_, double p_240022_, int p_240023_) Description copied from interface:GuiEventListenerCalled when a mouse button is clicked within the GUI element.- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<ReportReasonSelectionScreen.ReasonSelectionList.Entry>- Parameters:
p_240021_- the X coordinate of the mouse.p_240022_- the Y coordinate of the mouse.p_240023_- the button that was clicked.- Returns:
trueif the event is consumed,falseotherwise.
-
getReason
-