Package net.minecraft.client.gui.widget
Class AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>>
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<E>
- All Implemented Interfaces:
Element
- Direct Known Subclasses:
CustomizeBuffetLevelScreen.BuffetBiomesListWidget.BuffetBiomeItem
,CustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerItem
,LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry
,MultiplayerServerListWidget.Entry
,PackListWidget.ResourcePackEntry
,PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry
,RealmsBackupInfoScreen.BackupInfoListEntry
,RealmsBackupScreen.BackupObjectSelectionListEntry
,RealmsMainScreen.Entry
,RealmsPendingInvitesScreen.PendingInvitationSelectionListEntry
,RealmsPlayerScreen.InvitedObjectSelectionListEntry
,RealmsSelectFileToUploadScreen.WorldListEntry
,RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry
,StatsScreen.EntityStatsListWidget.Entry
,StatsScreen.GeneralStatsListWidget.Entry
,StatsScreen.ItemStatsListWidget.Entry
,WorldListWidget.Entry
- Enclosing class:
- AlwaysSelectedEntryListWidget<E extends EntryListWidget.Entry<E>>
@Environment(CLIENT) public abstract static class AlwaysSelectedEntryListWidget.Entry<E extends AlwaysSelectedEntryListWidget.Entry<E>> extends EntryListWidget.Entry<E>
-
Constructor Summary
Constructors Constructor Description Entry()
-
Method Summary
Modifier and Type Method Description boolean
changeFocus(boolean lookForwards)
Changes the focusing element by cycling to the next/previous element.Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOver, render
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
changeFocus
public boolean changeFocus(boolean lookForwards)Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- Parameters:
lookForwards
-true
to cycle forwards, otherwise cycle backwards- Returns:
true
to indicate that the event handling is successful/valid
-