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:
AbstractGameRulesScreen.RuleEntry, DebugOptionsScreen.AbstractOptionEntry, KeyBindsList.Entry, OptionsList.AbstractEntry, 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 @Nullable GuiEventListenerprivate @Nullable NarratableEntryFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ComponentPathfocusPathAtIndex(FocusNavigationEvent navigationEvent, int currentIndex) @Nullable GuiEventListenerbooleanbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) abstract List<? extends NarratableEntry> @Nullable ComponentPathnextFocusPath(FocusNavigationEvent navigationEvent) Retrieves the next focus path based on the given focus navigation event.voidsetDragging(boolean dragging) Sets if the GUI element is dragging or not.voidsetFocused(@Nullable GuiEventListener focused) Sets the focus state of the GUI element.(package private) voidMethods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, children, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface 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 dragging) Description copied from interface:ContainerEventHandlerSets if the GUI element is dragging or not.- Specified by:
setDraggingin interfaceContainerEventHandler- Parameters:
dragging- 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:
focused- the focused GUI element.
-
getFocused
- Specified by:
getFocusedin interfaceContainerEventHandler
-
narratables
-
updateNarration
-