Record Class GameRuleRpcDispatcher.TypedRule
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.GameRuleRpcDispatcher.TypedRule
- Record Components:
key-value-type-
- Enclosing class:
GameRuleRpcDispatcher
public static record GameRuleRpcDispatcher.TypedRule(String key, String value, GameRuleRpcDispatcher.GameRuleType type)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$TypedRuleintermediary net/minecraft/class_11844$class_11846official avq$bnamed keyintermediary comp_4719official bnamed valueintermediary comp_4720official cnamed typeintermediary comp_4721official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<GameRuleRpcDispatcher.TypedRule> private final StringThe field for thekeyrecord component.private final GameRuleRpcDispatcher.GameRuleTypeThe field for thetyperecord component.private final StringThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTypedRule(String key, String value, GameRuleRpcDispatcher.GameRuleType type) Creates an instance of aTypedRulerecord class. -
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.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
key
The field for thekeyrecord component. -
value
The field for thevaluerecord component. -
type
The field for thetyperecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$TypedRule;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62403Lnet/minecraft/class_11844$class_11846;field_62403:Lcom/mojang/serialization/MapCodec;official aLavq$b;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Method Details
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-