类 PopupScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.PopupScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private static final int
private final com.google.common.collect.ImmutableList<PopupScreen.ButtonOption>
private int
private int
private final FormattedText
private MultiLineLabel
private final Component
从类继承的字段 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
-
构造器概要
构造器限定符构造器说明protected
PopupScreen
(Component pTitle, List<Component> pMessage, com.google.common.collect.ImmutableList<PopupScreen.ButtonOption> pButtonOptions) -
方法概要
修饰符和类型方法说明void
init()
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) boolean
从类继承的方法 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, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldNarrateNavigation, tick, 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, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
BUTTON_PADDING
private static final int BUTTON_PADDING- 另请参阅:
-
BUTTON_MARGIN
private static final int BUTTON_MARGIN- 另请参阅:
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- 另请参阅:
-
narrationMessage
-
message
-
buttonOptions
-
messageLines
-
contentTop
private int contentTop -
buttonWidth
private int buttonWidth
-
-
构造器详细资料
-
PopupScreen
protected PopupScreen(Component pTitle, List<Component> pMessage, com.google.common.collect.ImmutableList<PopupScreen.ButtonOption> pButtonOptions)
-
-
方法详细资料
-
getNarrationMessage
- 覆盖:
getNarrationMessage
在类中Screen
-
init
public void init() -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- 覆盖:
shouldCloseOnEsc
在类中Screen
-