Record Class GameRuleRpcDispatcher.class_12254<T>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.dispatch.GameRuleRpcDispatcher.class_12254<T>
- Record Components:
gameRule-value-
- Enclosing class:
GameRuleRpcDispatcher
public static record GameRuleRpcDispatcher.class_12254<T>(GameRule<T> gameRule, T value)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254intermediary net/minecraft/class_11844$class_12254official avl$anamed gameRuleintermediary comp_5161official cnamed valueintermediary comp_5162official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GameRuleRpcDispatcher.class_12254<?>> static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.class_12254<?>> The field for thegameRulerecord component.private final TThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_12254(GameRule<T> gameRule, T value) Creates an instance of aclass_12254record class. -
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.private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> method_76050(GameRule<T> gameRule) private static <T> GameRuleRpcDispatcher.class_12254<T> method_76052(GameRule<T> gameRule, GameRuleType gameRuleType, T t) private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> method_76054(GameRule<T> gameRule) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
gameRule
The field for thegameRulerecord component. -
value
The field for thevaluerecord component. -
field_64088
public static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.class_12254<?>> field_64088- Mappings:
Namespace Name Mixin selector named field_64088Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;field_64088:Lcom/mojang/serialization/Codec;intermediary field_64088Lnet/minecraft/class_11844$class_12254;field_64088:Lcom/mojang/serialization/Codec;official aLavl$a;a:Lcom/mojang/serialization/Codec;
-
field_64089
public static final com.mojang.serialization.Codec<GameRuleRpcDispatcher.class_12254<?>> field_64089- Mappings:
Namespace Name Mixin selector named field_64089Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;field_64089:Lcom/mojang/serialization/Codec;intermediary field_64089Lnet/minecraft/class_11844$class_12254;field_64089:Lcom/mojang/serialization/Codec;official bLavl$a;b:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Method Details
-
method_76050
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> method_76050(GameRule<T> gameRule) - Mappings:
Namespace Name Mixin selector named method_76050Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;method_76050(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 aLavl$a;a(Lesi;)Lcom/mojang/serialization/MapCodec;
-
method_76054
private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> method_76054(GameRule<T> gameRule) - Mappings:
Namespace Name Mixin selector named method_76054Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;method_76054(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 bLavl$a;b(Lesi;)Lcom/mojang/serialization/MapCodec;
-
method_76052
private static <T> GameRuleRpcDispatcher.class_12254<T> method_76052(GameRule<T> gameRule, GameRuleType gameRuleType, T t) - Mappings:
Namespace Name Mixin selector named method_76052Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;method_76052(Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/server/dedicated/management/dispatch/GameRuleType;Ljava/lang/Object;)Lnet/minecraft/server/dedicated/management/dispatch/GameRuleRpcDispatcher$class_12254;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 aLavl$a;a(Lesi;Lesl;Ljava/lang/Object;)Lavl$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
-