Record Class RpcKickReason
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcKickReason
- Record Components:
literal-translatable-translatableParams-
public record RpcKickReason(Optional<String> literal, Optional<String> translatable, Optional<List<String>> translatableParams)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/RpcKickReasonintermediary net/minecraft/class_11853official avgnamed literalintermediary comp_4737official bnamed translatableintermediary comp_4738official cnamed translatableParamsintermediary comp_4739official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<RpcKickReason> The field for theliteralrecord component.The field for thetranslatablerecord component.The field for thetranslatableParamsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.literal()Returns the value of theliteralrecord component.final StringtoString()Returns a string representation of this record class.toText()Returns the value of thetranslatablerecord component.Returns the value of thetranslatableParamsrecord component.
-
Field Details
-
literal
The field for theliteralrecord component. -
translatable
The field for thetranslatablerecord component. -
translatableParams
The field for thetranslatableParamsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/RpcKickReason;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62408Lnet/minecraft/class_11853;field_62408:Lcom/mojang/serialization/Codec;official aLavg;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
RpcKickReason
-
-
Method Details
-
toText
- Mappings:
Namespace Name Mixin selector named toTextLnet/minecraft/server/dedicated/management/RpcKickReason;toText()Ljava/util/Optional;intermediary method_74507Lnet/minecraft/class_11853;method_74507()Ljava/util/Optional;official aLavg;a()Ljava/util/Optional;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
literal
Returns the value of theliteralrecord component.- Returns:
- the value of the
literalrecord component
-
translatable
Returns the value of thetranslatablerecord component.- Returns:
- the value of the
translatablerecord component
-
translatableParams
Returns the value of thetranslatableParamsrecord component.- Returns:
- the value of the
translatableParamsrecord component
-