类 Screen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
- 直接已知子类:
AbstractCommandBlockEditScreen
,AbstractContainerScreen
,AbstractReportScreen
,AbstractSignEditScreen
,AccessibilityOnboardingScreen
,AdvancementsScreen
,AlertScreen
,BackupConfirmScreen
,BookEditScreen
,BookViewScreen
,ChatScreen
,ChatSelectionScreen
,ConfirmExperimentalFeaturesScreen
,ConfirmExperimentalFeaturesScreen.DetailsScreen
,ConfirmScreen
,ConnectScreen
,CreateBuffetWorldScreen
,CreateFlatWorldScreen
,CreateWorldScreen
,CreditsAndAttributionScreen
,DatapackLoadFailureScreen
,DeathScreen
,DemoIntroScreen
,DirectJoinServerScreen
,DisconnectedScreen
,EditGameRulesScreen
,EditServerScreen
,EditWorldScreen
,ErrorScreen
,ExperimentsScreen
,GameModeSwitcherScreen
,GenericMessageScreen
,GenericWaitingScreen
,JigsawBlockEditScreen
,JoinMultiplayerScreen
,LevelLoadingScreen
,ModListScreen
,ModMismatchDisconnectedScreen
,NoticeWithLinkScreen
,OptimizeWorldScreen
,OptionsScreen
,OptionsSubScreen
,OutOfMemoryScreen
,PackSelectionScreen
,PauseScreen
,PauseScreen.FeedbackSubScreen
,PopupScreen
,PresetFlatWorldScreen
,ProgressScreen
,RealmsScreen
,ReceivingLevelScreen
,RecoverWorldDataScreen
,ReportPlayerScreen
,ReportReasonSelectionScreen
,SelectWorldScreen
,ServerLinksScreen
,ServerReconfigScreen
,ShareToLanScreen
,SocialInteractionsScreen
,StatsScreen
,StructureBlockEditScreen
,TelemetryInfoScreen
,TitleScreen
,TitleScreenModUpdateIndicator
,UnsupportedGraphicsWarningScreen
,WarningScreen
,WinScreen
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static final record
static class
-
字段概要
字段修饰符和类型字段说明private final List
<GuiEventListener> protected static final CubeMap
private Screen.DeferredTooltipRendering
protected Font
static final ResourceLocation
static final ResourceLocation
int
private boolean
static final ResourceLocation
static final ResourceLocation
private static final ResourceLocation
private NarratableEntry
private static final org.slf4j.Logger
static final ResourceLocation
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
protected CycleButton
<NarratorStatus> private long
protected static final PanoramaRenderer
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
addEventWidget
(GuiEventListener guiEventListener) protected <T extends Renderable>
TaddRenderableOnly
(T p_254514_) protected <T extends GuiEventListener & Renderable & NarratableEntry>
TaddRenderableWidget
(T p_169406_) protected <T extends GuiEventListener & NarratableEntry>
TaddWidget
(T p_96625_) void
void
void
protected void
changeFocus
(ComponentPath p_265308_) List
<? extends GuiEventListener> children()
void
protected void
protected void
createArrowEvent
(ScreenDirection p_265049_) void
fillCrashDetails
(CrashReport p_363781_) findNarratableWidget
(List<? extends NarratableEntry> p_169401_, NarratableEntry p_169402_) getFont()
getTitle()
getTooltipFromItem
(Minecraft p_281881_, ItemStack p_282833_) protected Component
boolean
handleComponentClicked
(Style p_96592_) void
static boolean
static boolean
static boolean
protected void
init()
final void
protected void
insertText
(String p_96587_, boolean p_96588_) static boolean
isCopy
(int p_96633_) static boolean
isCut
(int p_96629_) boolean
isMouseOver
(double p_96595_, double p_96596_) static boolean
isPaste
(int p_96631_) boolean
static boolean
isSelectAll
(int p_96635_) protected boolean
isValidCharacterForName
(String p_96584_, char p_96585_, int p_96586_) boolean
keyPressed
(int p_96552_, int p_96553_, int p_96554_) void
onClose()
void
onFilesDrop
(List<Path> p_96591_) protected void
void
removed()
protected void
removeWidget
(GuiEventListener p_169412_) void
render
(GuiGraphics p_281549_, int p_281550_, int p_282878_, float p_282465_) void
renderBackground
(GuiGraphics p_283688_, int p_299421_, int p_298679_, float p_297268_) protected void
protected void
renderMenuBackground
(GuiGraphics p_332667_) protected void
renderMenuBackground
(GuiGraphics p_334761_, int p_328355_, int p_328091_, int p_332954_, int p_331811_) static void
renderMenuBackgroundTexture
(GuiGraphics p_331670_, ResourceLocation p_330833_, int p_332491_, int p_335034_, float p_330279_, float p_334888_, int p_331386_, int p_330145_) protected void
renderPanorama
(GuiGraphics p_332550_, float p_335227_) void
renderTransparentBackground
(GuiGraphics p_300203_) final void
renderWithTooltip
(GuiGraphics p_282345_, int p_283456_, int p_283586_, float p_282339_) protected void
void
private void
runNarration
(boolean p_169410_) private void
scheduleNarration
(long p_169381_, boolean p_169382_) protected void
protected void
setInitialFocus
(GuiEventListener p_265756_) void
setTooltipForNextRenderPass
(List<FormattedCharSequence> p_259937_) void
setTooltipForNextRenderPass
(List<FormattedCharSequence> p_262939_, ClientTooltipPositioner p_263078_, boolean p_263107_) void
setTooltipForNextRenderPass
(Tooltip p_262992_, ClientTooltipPositioner p_262980_, boolean p_262988_) void
setTooltipForNextRenderPass
(Component p_259986_) boolean
protected boolean
private boolean
boolean
private void
suppressNarration
(long p_169379_) void
tick()
void
triggerImmediateNarration
(boolean p_169408_) protected void
updateNarratedWidget
(NarrationElementOutput p_169403_) protected void
updateNarrationState
(NarrationElementOutput p_169396_) void
updateNarratorStatus
(boolean p_345154_) 从类继承的方法 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
USAGE_NARRATION
-
CUBE_MAP
-
PANORAMA
-
MENU_BACKGROUND
-
HEADER_SEPARATOR
-
FOOTER_SEPARATOR
-
INWORLD_MENU_BACKGROUND
-
INWORLD_HEADER_SEPARATOR
-
INWORLD_FOOTER_SEPARATOR
-
title
-
children
-
narratables
-
minecraft
-
initialized
private boolean initialized -
width
public int width -
height
public int height -
renderables
-
font
-
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 -
narratorButton
-
lastNarratable
-
deferredTooltipRendering
-
screenExecutor
-
-
构造器详细资料
-
Screen
-
-
方法详细资料
-
getTitle
-
getNarrationMessage
-
renderWithTooltip
public final void renderWithTooltip(GuiGraphics p_282345_, int p_283456_, int p_283586_, float p_282339_) -
render
- 指定者:
render
在接口中Renderable
-
keyPressed
public boolean keyPressed(int p_96552_, int p_96553_, int p_96554_) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
-
createTabEvent
-
setInitialFocus
protected void setInitialFocus() -
setInitialFocus
-
clearFocus
public void clearFocus() -
changeFocus
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc() -
onClose
public void onClose() -
addRenderableWidget
protected <T extends GuiEventListener & Renderable & NarratableEntry> T addRenderableWidget(T p_169406_) -
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
-
renderBlurredBackground
protected void renderBlurredBackground() -
renderPanorama
-
renderMenuBackground
-
renderMenuBackground
protected void renderMenuBackground(GuiGraphics p_334761_, int p_328355_, int p_328091_, int p_332954_, int p_331811_) -
renderMenuBackgroundTexture
public static void renderMenuBackgroundTexture(GuiGraphics p_331670_, ResourceLocation p_330833_, int p_332491_, int p_335034_, float p_330279_, float p_334888_, int p_331386_, int p_330145_) -
renderTransparentBackground
-
isPauseScreen
public boolean isPauseScreen() -
hasControlDown
public static boolean hasControlDown() -
hasShiftDown
public static boolean hasShiftDown() -
hasAltDown
public static boolean hasAltDown() -
isCut
public static boolean isCut(int p_96629_) -
isPaste
public static boolean isPaste(int p_96631_) -
isCopy
public static boolean isCopy(int p_96633_) -
isSelectAll
public static boolean isSelectAll(int p_96635_) -
repositionElements
protected void repositionElements() -
resize
-
fillCrashDetails
-
isValidCharacterForName
-
isMouseOver
public boolean isMouseOver(double p_96595_, double p_96596_) - 指定者:
isMouseOver
在接口中GuiEventListener
-
onFilesDrop
-
getMinecraft
-
addEventWidget
-
scheduleNarration
private void scheduleNarration(long p_169381_, boolean p_169382_) -
suppressNarration
private void suppressNarration(long p_169379_) -
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 p_169408_) -
runNarration
private void runNarration(boolean p_169410_) -
updateNarrationState
-
updateNarratedWidget
-
getUsageNarration
-
findNarratableWidget
@Nullable public static Screen.NarratableSearchResult findNarratableWidget(List<? extends NarratableEntry> p_169401_, @Nullable NarratableEntry p_169402_) -
updateNarratorStatus
public void updateNarratorStatus(boolean p_345154_) -
clearTooltipForNextRenderPass
protected void clearTooltipForNextRenderPass() -
setTooltipForNextRenderPass
-
setTooltipForNextRenderPass
public void setTooltipForNextRenderPass(List<FormattedCharSequence> p_262939_, ClientTooltipPositioner p_263078_, boolean p_263107_) -
setTooltipForNextRenderPass
-
setTooltipForNextRenderPass
public void setTooltipForNextRenderPass(Tooltip p_262992_, ClientTooltipPositioner p_262980_, boolean p_262988_) -
getFont
-
showsActiveEffects
public boolean showsActiveEffects() -
getRectangle
- 指定者:
getRectangle
在接口中GuiEventListener
-
getBackgroundMusic
-