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_10495
intermediary net/minecraft/class_10494$class_10495
official hdb$a
named switchCodec
intermediary comp_3417
official a
  • Field Details

  • Constructor Details

  • 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_65686 Lnet/minecraft/class_10494$class_10495;method_65686(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_10494$class_10495;
      intermediary method_65686 Lnet/minecraft/class_10494$class_10495;method_65686(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_10494$class_10495;
      official a Lhdb$a;a(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/Codec;)Lhdb$a;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • switchCodec

      public com.mojang.serialization.MapCodec<class_10451.class_10454<P,T>> switchCodec()
      Returns the value of the switchCodec record component.
      Returns:
      the value of the switchCodec record component