Class ContainerObjectSelectionList.Entry<E extends ContainerObjectSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<E>
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,TabOrderedElement,LayoutElement
- Direct Known Subclasses:
DebugOptionsScreen.AbstractOptionEntry,EditGameRulesScreen.RuleEntry,KeyBindsList.Entry,OptionsList.Entry,PlayerEntry,RealmsBackupScreen.Entry,RealmsPendingInvitesScreen.Entry,RealmsPlayersTab.Entry,StatsScreen.ItemStatisticsList.Entry
- Enclosing class:
ContainerObjectSelectionList<E extends ContainerObjectSelectionList.Entry<E>>
public abstract static class ContainerObjectSelectionList.Entry<E extends ContainerObjectSelectionList.Entry<E>>
extends AbstractSelectionList.Entry<E>
implements ContainerEventHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate GuiEventListenerprivate NarratableEntryFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfocusPathAtIndex(FocusNavigationEvent pEvent, int pIndex) booleanbooleanmouseClicked(MouseButtonEvent p_445873_, boolean p_433971_) abstract List<? extends NarratableEntry> nextFocusPath(FocusNavigationEvent p_265672_) Retrieves the next focus path based on the given focus navigation event.voidsetDragging(boolean pDragging) Sets if the GUI element is dragging or not.voidsetFocused(GuiEventListener pListener) Sets the focus state of the GUI element.(package private) voidupdateNarration(NarrationElementOutput pNarrationElementOutput) Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, renderContent, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods 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, children, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods 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.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
focused
-
lastNarratable
-
dragging
private boolean dragging
-
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
isDragging
public boolean isDragging()- Specified by:
isDraggingin interfaceContainerEventHandler
-
setDragging
public void setDragging(boolean pDragging) Description copied from interface:ContainerEventHandlerSets if the GUI element is dragging or not.- Specified by:
setDraggingin interfaceContainerEventHandler- Parameters:
pDragging- the dragging state of the GUI element.
-
mouseClicked
- Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener
-
setFocused
Description copied from interface:ContainerEventHandlerSets the focus state of the GUI element.- Specified by:
setFocusedin interfaceContainerEventHandler- Parameters:
pListener- the focused GUI element.
-
getFocused
- Specified by:
getFocusedin interfaceContainerEventHandler
-
narratables
-
updateNarration
-