类 RealmsSelectWorldTemplateScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsSelectWorldTemplateScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
(专用程序包) class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private final Consumer<WorldTemplate>
(专用程序包) int
(专用程序包) String
(专用程序包) boolean
private boolean
(专用程序包) static final ResourceLocation
(专用程序包) static final org.slf4j.Logger
(专用程序包) List<TextRenderingUtils.Line>
(专用程序包) static final Component
private Button
private Button
(专用程序包) int
(专用程序包) static final ResourceLocation
(专用程序包) Component
(专用程序包) static final ResourceLocation
(专用程序包) static final Component
private Button
private Component[]
private String
private final RealmsServer.WorldType
从类继承的字段 net.minecraft.realms.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URL
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明RealmsSelectWorldTemplateScreen
(Component pTitle, Consumer<WorldTemplate> pCallback, RealmsServer.WorldType pWorldType) RealmsSelectWorldTemplateScreen
(Component pTitle, Consumer<WorldTemplate> pCallback, RealmsServer.WorldType pWorldType, WorldTemplatePaginatedList pWorldTemplatePaginatedList) -
方法概要
修饰符和类型方法说明(专用程序包) com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,
String> fetchTemplates
(WorldTemplatePaginatedList p_89656_, RealmsClient p_89657_) private void
private WorldTemplate
private boolean
void
init()
boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) void
onClose()
private void
private void
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
renderMousehoverTooltip
(GuiGraphics pGuiGraphics, Component pTooltip, int pMouseX, int pMouseY) private void
renderMultilineMessage
(GuiGraphics pGuiGraphics, int pX, int pY, List<TextRenderingUtils.Line> pLines) (专用程序包) void
void
setWarning
(Component... pWarning) private boolean
private boolean
private boolean
void
tick()
(专用程序包) void
从类继承的方法 net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 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, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
LINK_ICON
-
TRAILER_ICON
-
SLOT_FRAME_LOCATION
-
PUBLISHER_LINK_TOOLTIP
-
TRAILER_LINK_TOOLTIP
-
callback
-
worldTemplateObjectSelectionList
RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList worldTemplateObjectSelectionList -
selectedTemplate
int selectedTemplate -
selectButton
-
trailerButton
-
publisherButton
-
toolTip
-
currentLink
-
worldType
-
clicks
int clicks -
warning
-
warningURL
-
displayWarning
boolean displayWarning -
hoverWarning
private boolean hoverWarning -
noTemplatesMessage
-
-
构造器详细资料
-
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Component pTitle, Consumer<WorldTemplate> pCallback, RealmsServer.WorldType pWorldType) -
RealmsSelectWorldTemplateScreen
public RealmsSelectWorldTemplateScreen(Component pTitle, Consumer<WorldTemplate> pCallback, RealmsServer.WorldType pWorldType, @Nullable WorldTemplatePaginatedList pWorldTemplatePaginatedList)
-
-
方法详细资料
-
setWarning
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) -
init
public void init() -
getNarrationMessage
- 覆盖:
getNarrationMessage
在类中Screen
-
updateButtonStates
void updateButtonStates() -
shouldSelectButtonBeActive
private boolean shouldSelectButtonBeActive() -
shouldPublisherBeVisible
private boolean shouldPublisherBeVisible() -
getSelectedTemplate
-
shouldTrailerBeVisible
private boolean shouldTrailerBeVisible() -
tick
public void tick() -
onClose
public void onClose() -
selectTemplate
void selectTemplate() -
hasValidTemplate
private boolean hasValidTemplate() -
onTrailer
private void onTrailer() -
onPublish
private void onPublish() -
fetchTemplatesAsync
-
fetchTemplates
com.mojang.datafixers.util.Either<WorldTemplatePaginatedList,String> fetchTemplates(WorldTemplatePaginatedList p_89656_, RealmsClient p_89657_) -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
renderMultilineMessage
private void renderMultilineMessage(GuiGraphics pGuiGraphics, int pX, int pY, List<TextRenderingUtils.Line> pLines) -
renderMousehoverTooltip
protected void renderMousehoverTooltip(GuiGraphics pGuiGraphics, @Nullable Component pTooltip, int pMouseX, int pMouseY)
-