Package net.minecraft.client.realms.dto
Record Class Subscription
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.Subscription
- Record Components:
startDate-daysLeft-type-
@Environment(CLIENT)
public record Subscription(long startDate, int daysLeft, Subscription.SubscriptionType type)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/Subscriptionintermediary net/minecraft/class_4887official fzinamed startDateintermediary comp_5030official anamed daysLeftintermediary comp_5031official bnamed typeintermediary comp_5032official c
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedaysLeftrecord component.private static final Loggerprivate final longThe field for thestartDaterecord component.private final Subscription.SubscriptionTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSubscription(long startDate, int daysLeft, Subscription.SubscriptionType type) Creates an instance of aSubscriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdaysLeft()Returns the value of thedaysLeftrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static SubscriptionlongReturns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.private static Subscription.SubscriptionType
-
Field Details
-
startDate
private final long startDateThe field for thestartDaterecord component. -
daysLeft
private final int daysLeftThe field for thedaysLeftrecord component. -
type
The field for thetyperecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/realms/dto/Subscription;LOGGER:Lorg/slf4j/Logger;intermediary field_22656Lnet/minecraft/class_4887;field_22656:Lorg/slf4j/Logger;official dLfzi;d:Lorg/slf4j/Logger;
-
-
Constructor Details
-
Method Details
-
parse
- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/client/realms/dto/Subscription;parse(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/Subscription;intermediary method_25085Lnet/minecraft/class_4887;method_25085(Ljava/lang/String;)Lnet/minecraft/class_4887;official aLfzi;a(Ljava/lang/String;)Lfzi;
-
typeFrom
- Mappings:
Namespace Name Mixin selector named typeFromLnet/minecraft/client/realms/dto/Subscription;typeFrom(Ljava/lang/String;)Lnet/minecraft/client/realms/dto/Subscription$SubscriptionType;intermediary method_25086Lnet/minecraft/class_4887;method_25086(Ljava/lang/String;)Lnet/minecraft/class_4887$class_4322;official bLfzi;b(Ljava/lang/String;)Lfzi$a;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startDate
public long startDate()Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
daysLeft
public int daysLeft()Returns the value of thedaysLeftrecord component.- Returns:
- the value of the
daysLeftrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-