类 DeathScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.DeathScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class DeathScreen extends Screen
- Mappings:
Namespace Name official dykintermediary net/minecraft/class_418named net/minecraft/client/gui/screen/DeathScreen
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanisHardcoreprivate Textmessageprivate TextscoreTextprivate intticksSinceDeath-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 DeathScreen(@Nullable Text message, boolean isHardcore)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 private @Nullable StylegetTextComponentUnderMouse(int mouseX)protected voidinit()Called when a screen should be initialized.booleanisPauseScreen()booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.private voidonConfirmQuit(boolean quit)private voidquitLevel()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)booleanshouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.voidtick()-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
ticksSinceDeath
private int ticksSinceDeath
- Mappings:
Namespace Name Mixin selector official aLdyk;a:Iintermediary field_2451Lnet/minecraft/class_418;field_2451:Inamed ticksSinceDeathLnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:I
-
message
private final Text message
- Mappings:
Namespace Name Mixin selector official bLdyk;b:Lon;intermediary field_2450Lnet/minecraft/class_418;field_2450:Lnet/minecraft/class_2561;named messageLnet/minecraft/client/gui/screen/DeathScreen;message:Lnet/minecraft/text/Text;
-
isHardcore
private final boolean isHardcore
- Mappings:
Namespace Name Mixin selector official cLdyk;c:Zintermediary field_18974Lnet/minecraft/class_418;field_18974:Znamed isHardcoreLnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Z
-
scoreText
private Text scoreText
- Mappings:
Namespace Name Mixin selector official pLdyk;p:Lon;intermediary field_26537Lnet/minecraft/class_418;field_26537:Lnet/minecraft/class_2561;named scoreTextLnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;
-
-
构造器详细资料
-
DeathScreen
public DeathScreen(@Nullable @Nullable Text message, boolean isHardcore)
- Mappings:
Namespace Name Mixin selector official <init>Ldyk;<init>(Lon;Z)Vintermediary <init>Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;Z)Vnamed <init>Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;Z)V
-
-
方法详细资料
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()
Checks whether this screen should be closed when the escape key is pressed.- 覆盖:
shouldCloseOnEsc在类中Screen- Mappings:
Namespace Name Mixin selector official az_Ldzg;az_()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Znamed shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
-
onConfirmQuit
private void onConfirmQuit(boolean quit)
- Mappings:
Namespace Name Mixin selector official cLdyk;c(Z)Vintermediary method_20373Lnet/minecraft/class_418;method_20373(Z)Vnamed onConfirmQuitLnet/minecraft/client/gui/screen/DeathScreen;onConfirmQuit(Z)V
-
quitLevel
private void quitLevel()
- Mappings:
Namespace Name Mixin selector official hLdyk;h()Vintermediary method_22364Lnet/minecraft/class_418;method_22364()Vnamed quitLevelLnet/minecraft/client/gui/screen/DeathScreen;quitLevel()V
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
getTextComponentUnderMouse
@Nullable private @Nullable Style getTextComponentUnderMouse(int mouseX)
- Mappings:
Namespace Name Mixin selector official aLdyk;a(I)Lox;intermediary method_2164Lnet/minecraft/class_418;method_2164(I)Lnet/minecraft/class_2583;named getTextComponentUnderMouseLnet/minecraft/client/gui/screen/DeathScreen;getTextComponentUnderMouse(I)Lnet/minecraft/text/Style;
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
isPauseScreen
public boolean isPauseScreen()
- 覆盖:
isPauseScreen在类中Screen- Mappings:
Namespace Name Mixin selector official aE_Ldzg;aE_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed isPauseScreenLnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
-