Package net.minecraft
Record Class class_10494.class_10495<P extends class_10494<T>,T>
java.lang.Object
java.lang.Record
net.minecraft.class_10494.class_10495<P,T>
- Record Components:
switchCodec-
- Enclosing interface:
class_10494<T>
@Environment(CLIENT)
public static record class_10494.class_10495<P extends class_10494<T>,T> (com.mojang.serialization.MapCodec<class_10451.class_10454<P extends class_10494<T>,T>> switchCodec)
extends Record
- Mappings:
Namespace Name named net/minecraft/class_10494$class_10495intermediary net/minecraft/class_10494$class_10495official hdb$anamed switchCodecintermediary comp_3417official a
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.MapCodec<class_10451.class_10454<P, T>> The field for theswitchCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10495(com.mojang.serialization.MapCodec<class_10451.class_10454<P, T>> mapCodec) -
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.static <P extends class_10494<T>,T>
class_10494.class_10495<P, T> method_65686(com.mojang.serialization.MapCodec<P> mapCodec, com.mojang.serialization.Codec<T> codec) com.mojang.serialization.MapCodec<class_10451.class_10454<P, T>> Returns the value of theswitchCodecrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
switchCodec
private final com.mojang.serialization.MapCodec<class_10451.class_10454<P extends class_10494<T>,T>> switchCodecThe field for theswitchCodecrecord component.
-
-
Constructor Details
-
class_10495
-
-
Method Details
-
method_65686
public static <P extends class_10494<T>,T> class_10494.class_10495<P,T> method_65686(com.mojang.serialization.MapCodec<P> mapCodec, com.mojang.serialization.Codec<T> codec) - Mappings:
Namespace Name Mixin selector named method_65686Lnet/minecraft/class_10494$class_10495;method_65686(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_10494$class_10495;intermediary method_65686Lnet/minecraft/class_10494$class_10495;method_65686(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_10494$class_10495;official aLhdb$a;a(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lhdb$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). -
switchCodec
Returns the value of theswitchCodecrecord component.- Returns:
- the value of the
switchCodecrecord component
-