Package net.minecraft
Record Class class_10665.class_10668.class_10669<S,T extends GameRules.Rule<T>>
java.lang.Object
java.lang.Record
net.minecraft.class_10665.class_10668.class_10669<S,T>
- Record Components:
key-value-
- Enclosing class:
class_10665.class_10668
public static record class_10665.class_10668.class_10669<S,T extends GameRules.Rule<T>> (GameRules.Key<T extends GameRules.Rule<T>> key, S value)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10665$class_10668$class_10669intermediary net/minecraft/class_10665$class_10668$class_10669official tj$c$anamed keyintermediary comp_3554official anamed valueintermediary comp_3555official b
-
Field Summary
Fields -
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.key()Returns the value of thekeyrecord component.static <S,T extends GameRules.Rule<T>>
com.mojang.serialization.Codec<class_10665.class_10668.class_10669<S, T>> method_67064(Class<T> class2, com.mojang.serialization.Codec<S> codec) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
Constructor Details
-
class_10669
-
-
Method Details
-
method_67064
public static <S,T extends GameRules.Rule<T>> com.mojang.serialization.Codec<class_10665.class_10668.class_10669<S,T>> method_67064(Class<T> class2, com.mojang.serialization.Codec<S> codec) - Mappings:
Namespace Name Mixin selector named method_67064Lnet/minecraft/class_10665$class_10668$class_10669;method_67064(Ljava/lang/Class;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;intermediary method_67064Lnet/minecraft/class_10665$class_10668$class_10669;method_67064(Ljava/lang/Class;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;official aLtj$c$a;a(Ljava/lang/Class;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
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
-