类 Screen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
- 直接已知子类:
AbstractCommandBlockEditScreen
,AbstractContainerScreen
,AbstractSignEditScreen
,AccessibilityOnboardingScreen
,AdvancementsScreen
,AlertScreen
,BackupConfirmScreen
,BookEditScreen
,BookViewScreen
,ChatReportScreen
,ChatScreen
,ChatSelectionScreen
,ConfirmExperimentalFeaturesScreen
,ConfirmExperimentalFeaturesScreen.DetailsScreen
,ConfirmScreen
,ConnectScreen
,CreateBuffetWorldScreen
,CreateFlatWorldScreen
,CreateWorldScreen
,CreditsAndAttributionScreen
,DatapackLoadFailureScreen
,DeathScreen
,DemoIntroScreen
,DirectJoinServerScreen
,DisconnectedScreen
,EditGameRulesScreen
,EditServerScreen
,EditWorldScreen
,ErrorScreen
,ExperimentsScreen
,GameModeSwitcherScreen
,GenericDirtMessageScreen
,GenericWaitingScreen
,JigsawBlockEditScreen
,JoinMultiplayerScreen
,LevelLoadingScreen
,ModListScreen
,ModMismatchDisconnectedScreen
,OptimizeWorldScreen
,OptionsScreen
,OptionsSubScreen
,OutOfMemoryScreen
,PackSelectionScreen
,PauseScreen
,PopupScreen
,PresetFlatWorldScreen
,ProgressScreen
,RealmsScreen
,ReceivingLevelScreen
,ReportReasonSelectionScreen
,SelectWorldScreen
,ShareToLanScreen
,SocialInteractionsScreen
,StatsScreen
,StructureBlockEditScreen
,SymlinkWarningScreen
,TelemetryInfoScreen
,TitleScreen
,TitleScreenModUpdateIndicator
,WarningScreen
,WinScreen
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static final record
static class
-
字段概要
字段修饰符和类型字段说明static final ResourceLocation
private final List<GuiEventListener>
private URI
private Screen.DeferredTooltipRendering
protected Font
int
private boolean
private NarratableEntry
private static final org.slf4j.Logger
protected Minecraft
private final List<NarratableEntry>
private static final long
private static final long
private static final long
private static final long
private static final long
private final ScreenNarrationCollector
private long
private long
final List<Renderable>
protected final Executor
protected final Component
private static final Component
int
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
added()
private void
protected <T extends Renderable>
TaddRenderableOnly
(T pRenderable) protected <T extends GuiEventListener & Renderable & NarratableEntry>
TaddRenderableWidget
(T pWidget) protected <T extends GuiEventListener & NarratableEntry>
TaddWidget
(T pListener) void
void
void
protected void
changeFocus
(ComponentPath pPath) List<? extends GuiEventListener>
children()
private void
protected void
private void
confirmLink
(boolean p_96623_) createArrowEvent
(ScreenDirection pDirection) findNarratableWidget
(List<? extends NarratableEntry> pEntries, NarratableEntry pTarget) getTitle()
getTooltipFromItem
(Minecraft pMinecraft, ItemStack pItem) boolean
handleComponentClicked
(Style pStyle) void
static boolean
static boolean
static boolean
protected static void
hideWidgets
(AbstractWidget... pWidgets) protected void
init()
final void
protected void
insertText
(String pText, boolean pOverwrite) static boolean
isCopy
(int pKeyCode) static boolean
isCut
(int pKeyCode) boolean
isMouseOver
(double pMouseX, double pMouseY) static boolean
isPaste
(int pKeyCode) boolean
static boolean
isSelectAll
(int pKeyCode) protected boolean
isValidCharacterForName
(String pText, char pCharTyped, int pCursorPos) boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) void
void
onClose()
void
onFilesDrop
(List<Path> pPacks) private void
protected void
void
removed()
protected void
removeWidget
(GuiEventListener pListener) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
renderBackground
(GuiGraphics pGuiGraphics) void
renderDirtBackground
(GuiGraphics pGuiGraphics) final void
renderWithTooltip
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
void
private void
runNarration
(boolean pOnlyNarrateNew) private void
scheduleNarration
(long pDelay, boolean pStopSuppression) protected void
setInitialFocus
(GuiEventListener pListener) void
setTooltipForNextRenderPass
(List<FormattedCharSequence> pTooltip) void
setTooltipForNextRenderPass
(List<FormattedCharSequence> pTooltip, ClientTooltipPositioner pPositioner, boolean pOverride) void
setTooltipForNextRenderPass
(Tooltip pTooltip, ClientTooltipPositioner pPositioner, boolean pOverride) protected void
setTooltipForNextRenderPass
(Component pTooltip) boolean
protected boolean
private boolean
private void
suppressNarration
(long pTime) void
tick()
void
triggerImmediateNarration
(boolean pOnlyNarrateNew) protected void
updateNarratedWidget
(NarrationElementOutput pNarrationElementOutput) protected void
updateNarrationState
(NarrationElementOutput p_169396_) static void
wrapScreenError
(Runnable pAction, String pErrorDesc, String pScreenName) 从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ALLOWED_PROTOCOLS
-
USAGE_NARRATION
-
BACKGROUND_LOCATION
-
title
-
children
-
narratables
-
minecraft
-
initialized
private boolean initialized -
width
public int width -
height
public int height -
renderables
-
font
-
clickedLink
-
NARRATE_SUPPRESS_AFTER_INIT_TIME
private static final long NARRATE_SUPPRESS_AFTER_INIT_TIME -
NARRATE_DELAY_NARRATOR_ENABLED
private static final long NARRATE_DELAY_NARRATOR_ENABLED -
NARRATE_DELAY_MOUSE_MOVE
private static final long NARRATE_DELAY_MOUSE_MOVE- 另请参阅:
-
NARRATE_DELAY_MOUSE_ACTION
private static final long NARRATE_DELAY_MOUSE_ACTION- 另请参阅:
-
NARRATE_DELAY_KEYBOARD_ACTION
private static final long NARRATE_DELAY_KEYBOARD_ACTION- 另请参阅:
-
narrationState
-
narrationSuppressTime
private long narrationSuppressTime -
nextNarrationTime
private long nextNarrationTime -
lastNarratable
-
deferredTooltipRendering
-
screenExecutor
-
-
构造器详细资料
-
Screen
-
-
方法详细资料
-
getTitle
-
getNarrationMessage
-
renderWithTooltip
public final void renderWithTooltip(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) -
render
- 指定者:
render
在接口中Renderable
-
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
-
createTabEvent
-
setInitialFocus
-
clearFocus
private void clearFocus() -
changeFocus
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc() -
onClose
public void onClose() -
addRenderableWidget
protected <T extends GuiEventListener & Renderable & NarratableEntry> T addRenderableWidget(T pWidget) -
addRenderableOnly
-
addWidget
-
removeWidget
-
clearWidgets
protected void clearWidgets() -
getTooltipFromItem
-
insertText
-
handleComponentClicked
-
init
-
rebuildWidgets
protected void rebuildWidgets() -
children
- 指定者:
children
在接口中ContainerEventHandler
-
init
protected void init() -
tick
public void tick() -
removed
public void removed() -
added
public void added() -
renderBackground
-
renderDirtBackground
-
isPauseScreen
public boolean isPauseScreen() -
confirmLink
private void confirmLink(boolean p_96623_) -
openLink
-
hasControlDown
public static boolean hasControlDown() -
hasShiftDown
public static boolean hasShiftDown() -
hasAltDown
public static boolean hasAltDown() -
isCut
public static boolean isCut(int pKeyCode) -
isPaste
public static boolean isPaste(int pKeyCode) -
isCopy
public static boolean isCopy(int pKeyCode) -
isSelectAll
public static boolean isSelectAll(int pKeyCode) -
repositionElements
protected void repositionElements() -
resize
-
wrapScreenError
-
isValidCharacterForName
-
isMouseOver
public boolean isMouseOver(double pMouseX, double pMouseY) - 指定者:
isMouseOver
在接口中GuiEventListener
-
onFilesDrop
-
getMinecraft
-
scheduleNarration
private void scheduleNarration(long pDelay, boolean pStopSuppression) -
suppressNarration
private void suppressNarration(long pTime) -
afterMouseMove
public void afterMouseMove() -
afterMouseAction
public void afterMouseAction() -
afterKeyboardAction
public void afterKeyboardAction() -
shouldRunNarration
private boolean shouldRunNarration() -
handleDelayedNarration
public void handleDelayedNarration() -
triggerImmediateNarration
public void triggerImmediateNarration(boolean pOnlyNarrateNew) -
runNarration
private void runNarration(boolean pOnlyNarrateNew) -
updateNarrationState
-
updateNarratedWidget
-
findNarratableWidget
@Nullable public static Screen.NarratableSearchResult findNarratableWidget(List<? extends NarratableEntry> pEntries, @Nullable NarratableEntry pTarget) -
narrationEnabled
public void narrationEnabled() -
setTooltipForNextRenderPass
-
setTooltipForNextRenderPass
public void setTooltipForNextRenderPass(List<FormattedCharSequence> pTooltip, ClientTooltipPositioner pPositioner, boolean pOverride) -
setTooltipForNextRenderPass
-
setTooltipForNextRenderPass
public void setTooltipForNextRenderPass(Tooltip pTooltip, ClientTooltipPositioner pPositioner, boolean pOverride) -
hideWidgets
-
getRectangle
- 指定者:
getRectangle
在接口中GuiEventListener
-
getBackgroundMusic
-
addEventWidget
-