Class RealmsSubscriptionTab
java.lang.Object
net.minecraft.client.gui.components.tabs.GridLayoutTab
com.mojang.realmsclient.gui.screens.configuration.RealmsSubscriptionTab
- All Implemented Interfaces:
RealmsConfigurationTab
,Tab
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmsConfigureWorldScreen
private static final Component
private Component
private final StringWidget
private final StringWidget
private static final int
private static final int
private final Button
private static final int
private static final org.slf4j.Logger
private final Minecraft
private static final Component
private RealmsServer
private Component
private final StringWidget
private static final Component
private static final Component
private static final Component
private final FocusableTextWidget
private static final Component
(package private) static final Component
private Subscription.SubscriptionType
private static final Component
Fields inherited from class net.minecraft.client.gui.components.tabs.GridLayoutTab
layout
-
Constructor Summary
ConstructorsConstructorDescriptionRealmsSubscriptionTab
(RealmsConfigureWorldScreen pConfigurationScreen, Minecraft pMinecraft, RealmsServer pServerData) -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
daysLeftPresentation
(int pDaysLeft) private void
private void
getSubscription
(long pServerId) private static Component
localPresentation
(long pTime) void
updateData
(RealmsServer pServer) Methods inherited from class net.minecraft.client.gui.components.tabs.GridLayoutTab
doLayout, getTabTitle, visitChildren
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.realmsclient.gui.screens.configuration.RealmsConfigurationTab
onDeselected, onSelected
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_COMPONENT_WIDTH
private static final int DEFAULT_COMPONENT_WIDTH- See Also:
-
EXTRA_SPACING
private static final int EXTRA_SPACING- See Also:
-
DEFAULT_SPACING
private static final int DEFAULT_SPACING- See Also:
-
TITLE
-
SUBSCRIPTION_START_LABEL
-
TIME_LEFT_LABEL
-
DAYS_LEFT_LABEL
-
SUBSCRIPTION_EXPIRED_TEXT
-
SUBSCRIPTION_LESS_THAN_A_DAY_TEXT
-
UNKNOWN
-
RECURRING_INFO
-
configurationScreen
-
minecraft
-
deleteButton
-
subscriptionInfo
-
startDateWidget
-
daysLeftLabelWidget
-
daysLeftWidget
-
serverData
-
daysLeft
-
startDate
-
type
-
-
Constructor Details
-
RealmsSubscriptionTab
RealmsSubscriptionTab(RealmsConfigureWorldScreen pConfigurationScreen, Minecraft pMinecraft, RealmsServer pServerData)
-
-
Method Details
-
deleteRealm
private void deleteRealm() -
getSubscription
private void getSubscription(long pServerId) -
localPresentation
-
daysLeftPresentation
-
updateData
- Specified by:
updateData
in interfaceRealmsConfigurationTab
-
getTabExtraNarration
- Specified by:
getTabExtraNarration
in interfaceTab
- Overrides:
getTabExtraNarration
in classGridLayoutTab
-