Record Class GameRuleRpcDispatcher.RuleEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.GameRuleRpcDispatcher.RuleEntry<T>
- Record Components:
gameRule-value-
- Enclosing class:
GameRuleRpcDispatcher
public static record GameRuleRpcDispatcher.RuleEntry<T>(GameRule<T> gameRule, T value)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntryintermediary net/minecraft/class_11844$class_12254official avk$anamed gameRuleintermediary comp_5161official cnamed valueintermediary comp_5162official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thegameRulerecord component.static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.RuleEntry<?>> static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.RuleEntry<?>> private final TThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gameRule()Returns the value of thegameRulerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.RuleEntry<T>> typedCodec(GameRule<T> rule) private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.RuleEntry<T>> untypedCodec(GameRule<T> rule) private static <T> GameRuleRpcDispatcher.RuleEntry<T> validateType(GameRule<T> rule, GameRuleType type, T value) value()Returns the value of thevaluerecord component.
-
Field Details
-
gameRule
The field for thegameRulerecord component. -
value
The field for thevaluerecord component. -
TYPED_CODEC
- Mappings:
Namespace Name Mixin selector named TYPED_CODECLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;TYPED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_64088Lnet/minecraft/class_11844$class_12254;field_64088:Lcom/mojang/serialization/Codec;official aLavk$a;a:Lcom/mojang/serialization/Codec;
-
UNTYPED_CODEC
public static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.RuleEntry<?>> UNTYPED_CODEC- Mappings:
Namespace Name Mixin selector named UNTYPED_CODECLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;UNTYPED_CODEC:Lcom/mojang/serialization/Codec;intermediary field_64089Lnet/minecraft/class_11844$class_12254;field_64089:Lcom/mojang/serialization/Codec;official bLavk$a;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
untypedCodec
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.RuleEntry<T>> untypedCodec(GameRule<T> rule) - Mappings:
Namespace Name Mixin selector named untypedCodecLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;untypedCodec(Lnet/minecraft/world/rule/GameRule;)Lcom/mojang/serialization/MapCodec;intermediary method_76050Lnet/minecraft/class_11844$class_12254;method_76050(Lnet/minecraft/class_12279;)Lcom/mojang/serialization/MapCodec;official aLavk$a;a(Lesn;)Lcom/mojang/serialization/MapCodec;
-
typedCodec
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.RuleEntry<T>> typedCodec(GameRule<T> rule) - Mappings:
Namespace Name Mixin selector named typedCodecLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;typedCodec(Lnet/minecraft/world/rule/GameRule;)Lcom/mojang/serialization/MapCodec;intermediary method_76054Lnet/minecraft/class_11844$class_12254;method_76054(Lnet/minecraft/class_12279;)Lcom/mojang/serialization/MapCodec;official bLavk$a;b(Lesn;)Lcom/mojang/serialization/MapCodec;
-
validateType
private static <T> GameRuleRpcDispatcher.RuleEntry<T> validateType(GameRule<T> rule, GameRuleType type, T value) - Mappings:
Namespace Name Mixin selector named validateTypeLnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;validateType(Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/world/rule/GameRuleType;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$RuleEntry;intermediary method_76052Lnet/minecraft/class_11844$class_12254;method_76052(Lnet/minecraft/class_12279;Lnet/minecraft/class_11845;Ljava/lang/Object;)Lnet/minecraft/class_11844$class_12254;official aLavk$a;a(Lesn;Lesq;Ljava/lang/Object;)Lavk$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. All components in this record class are compared withObjects::equals(Object,Object). -
gameRule
Returns the value of thegameRulerecord component.- Returns:
- the value of the
gameRulerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-