Class RealmsSubscriptionInfoScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsSubscriptionInfoScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class RealmsSubscriptionInfoScreen extends RealmsScreen
- Mappings:
Namespace Name official dop
intermediary net/minecraft/class_4425
named net/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen
-
Field Summary
Fields Modifier and Type Field Description private static Text
DAY_TEXT
private static Text
DAYS_TEXT
private Text
daysLeft
private static Text
daysLeftLabelText
private static Text
EXPIRED_TEXT
private static Text
EXPIRES_IN_LESS_THAN_A_DAY_TEXT
private static Logger
LOGGER
private Screen
mainScreen
private static Text
MONTH_TEXT
private static Text
MONTHS_TEXT
private Screen
parent
private RealmsServer
serverData
private String
startDate
private static Text
subscriptionStartLabelText
private static Text
subscriptionTitle
private static Text
timeLeftLabelText
private Subscription.SubscriptionType
type
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description RealmsSubscriptionInfoScreen(Screen parent, RealmsServer serverData, Screen mainScreen)
-
Method Summary
Modifier and Type Method Description private Text
daysLeftPresentation(int daysLeft)
private void
getSubscription(long worldId)
void
init()
Called when a screen should be initialized.boolean
keyPressed(int keyCode, int scanCode, int modifiers)
Callback for when a key down event has been captured.private static String
localPresentation(long long2)
private void
method_25271(boolean bool)
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row, tick
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldop;a:Lorg/apache/logging/log4j/Logger;
intermediary field_20146
Lnet/minecraft/class_4425;field_20146:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
subscriptionTitle
- Mappings:
Namespace Name Mixin selector official b
Ldop;b:Loi;
intermediary field_20153
Lnet/minecraft/class_4425;field_20153:Lnet/minecraft/class_2561;
named subscriptionTitle
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;subscriptionTitle:Lnet/minecraft/text/Text;
-
subscriptionStartLabelText
- Mappings:
Namespace Name Mixin selector official c
Ldop;c:Loi;
intermediary field_20154
Lnet/minecraft/class_4425;field_20154:Lnet/minecraft/class_2561;
named subscriptionStartLabelText
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;subscriptionStartLabelText:Lnet/minecraft/text/Text;
-
timeLeftLabelText
- Mappings:
Namespace Name Mixin selector official p
Ldop;p:Loi;
intermediary field_20155
Lnet/minecraft/class_4425;field_20155:Lnet/minecraft/class_2561;
named timeLeftLabelText
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;timeLeftLabelText:Lnet/minecraft/text/Text;
-
daysLeftLabelText
- Mappings:
Namespace Name Mixin selector official q
Ldop;q:Loi;
intermediary field_20156
Lnet/minecraft/class_4425;field_20156:Lnet/minecraft/class_2561;
named daysLeftLabelText
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;daysLeftLabelText:Lnet/minecraft/text/Text;
-
EXPIRED_TEXT
- Mappings:
Namespace Name Mixin selector official r
Ldop;r:Loi;
intermediary field_26517
Lnet/minecraft/class_4425;field_26517:Lnet/minecraft/class_2561;
named EXPIRED_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;EXPIRED_TEXT:Lnet/minecraft/text/Text;
-
EXPIRES_IN_LESS_THAN_A_DAY_TEXT
- Mappings:
Namespace Name Mixin selector official s
Ldop;s:Loi;
intermediary field_26518
Lnet/minecraft/class_4425;field_26518:Lnet/minecraft/class_2561;
named EXPIRES_IN_LESS_THAN_A_DAY_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;EXPIRES_IN_LESS_THAN_A_DAY_TEXT:Lnet/minecraft/text/Text;
-
MONTH_TEXT
- Mappings:
Namespace Name Mixin selector official t
Ldop;t:Loi;
intermediary field_26519
Lnet/minecraft/class_4425;field_26519:Lnet/minecraft/class_2561;
named MONTH_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;MONTH_TEXT:Lnet/minecraft/text/Text;
-
MONTHS_TEXT
- Mappings:
Namespace Name Mixin selector official u
Ldop;u:Loi;
intermediary field_26520
Lnet/minecraft/class_4425;field_26520:Lnet/minecraft/class_2561;
named MONTHS_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;MONTHS_TEXT:Lnet/minecraft/text/Text;
-
DAY_TEXT
- Mappings:
Namespace Name Mixin selector official v
Ldop;v:Loi;
intermediary field_26521
Lnet/minecraft/class_4425;field_26521:Lnet/minecraft/class_2561;
named DAY_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;DAY_TEXT:Lnet/minecraft/text/Text;
-
DAYS_TEXT
- Mappings:
Namespace Name Mixin selector official w
Ldop;w:Loi;
intermediary field_26522
Lnet/minecraft/class_4425;field_26522:Lnet/minecraft/class_2561;
named DAYS_TEXT
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;DAYS_TEXT:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official x
Ldop;x:Ldve;
intermediary field_20147
Lnet/minecraft/class_4425;field_20147:Lnet/minecraft/class_437;
named parent
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
serverData
- Mappings:
Namespace Name Mixin selector official y
Ldop;y:Ldmv;
intermediary field_20148
Lnet/minecraft/class_4425;field_20148:Lnet/minecraft/class_4877;
named serverData
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;serverData:Lnet/minecraft/client/realms/dto/RealmsServer;
-
mainScreen
- Mappings:
Namespace Name Mixin selector official z
Ldop;z:Ldve;
intermediary field_20149
Lnet/minecraft/class_4425;field_20149:Lnet/minecraft/class_437;
named mainScreen
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;mainScreen:Lnet/minecraft/client/gui/screen/Screen;
-
daysLeft
- Mappings:
Namespace Name Mixin selector official A
Ldop;A:Loi;
intermediary field_20157
Lnet/minecraft/class_4425;field_20157:Lnet/minecraft/class_2561;
named daysLeft
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;daysLeft:Lnet/minecraft/text/Text;
-
startDate
- Mappings:
Namespace Name Mixin selector official B
Ldop;B:Ljava/lang/String;
intermediary field_20158
Lnet/minecraft/class_4425;field_20158:Ljava/lang/String;
named startDate
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;startDate:Ljava/lang/String;
-
type
- Mappings:
Namespace Name Mixin selector official C
Ldop;C:Ldnf$a;
intermediary field_20159
Lnet/minecraft/class_4425;field_20159:Lnet/minecraft/class_4887$class_4322;
named type
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;type:Lnet/minecraft/client/realms/dto/Subscription$SubscriptionType;
-
-
Constructor Details
-
RealmsSubscriptionInfoScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldop;<init>(Ldve;Ldmv;Ldve;)V
intermediary <init>
Lnet/minecraft/class_4425;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_4877;Lnet/minecraft/class_437;)V
named <init>
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/realms/dto/RealmsServer;Lnet/minecraft/client/gui/screen/Screen;)V
-
-
Method Details
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
method_25271
private void method_25271(boolean bool)- Mappings:
Namespace Name Mixin selector official c
Ldop;c(Z)V
intermediary method_25271
Lnet/minecraft/class_4425;method_25271(Z)V
named method_25271
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;method_25271(Z)V
-
getSubscription
private void getSubscription(long worldId)- Mappings:
Namespace Name Mixin selector official a
Ldop;a(J)V
intermediary method_21500
Lnet/minecraft/class_4425;method_21500(J)V
named getSubscription
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;getSubscription(J)V
-
localPresentation
- Mappings:
Namespace Name Mixin selector official b
Ldop;b(J)Ljava/lang/String;
intermediary method_21502
Lnet/minecraft/class_4425;method_21502(J)Ljava/lang/String;
named localPresentation
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;localPresentation(J)Ljava/lang/String;
-
removed
public void removed() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int)
,GLFW.GLFW_KEY_Q
,GLFWKeyCallbackI.invoke(long, int, int, int, int)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
daysLeftPresentation
- Mappings:
Namespace Name Mixin selector official a
Ldop;a(I)Loi;
intermediary method_21499
Lnet/minecraft/class_4425;method_21499(I)Lnet/minecraft/class_2561;
named daysLeftPresentation
Lnet/minecraft/client/realms/gui/screen/RealmsSubscriptionInfoScreen;daysLeftPresentation(I)Lnet/minecraft/text/Text;
-