Record Class CustomModelDataComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.CustomModelDataComponent
Record Components:
floats -
flags -
strings -
colors -

public record CustomModelDataComponent(List<Float> floats, List<Boolean> flags, List<String> strings, List<Integer> colors) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/CustomModelDataComponent
intermediary net/minecraft/class_9280
official cza
named floats
intermediary comp_3354
official d
named flags
intermediary comp_3355
official e
named strings
intermediary comp_3356
official f
named colors
intermediary comp_3357
official g
  • Field Details Link icon

    • floats Link icon

      private final List<Float> floats
      The field for the floats record component.
    • flags Link icon

      private final List<Boolean> flags
      The field for the flags record component.
    • strings Link icon

      private final List<String> strings
      The field for the strings record component.
    • colors Link icon

      private final List<Integer> colors
      The field for the colors record component.
    • DEFAULT Link icon

      public static final CustomModelDataComponent DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/component/type/CustomModelDataComponent;DEFAULT:Lnet/minecraft/component/type/CustomModelDataComponent;
      intermediary field_55212 Lnet/minecraft/class_9280;field_55212:Lnet/minecraft/class_9280;
      official a Lcza;a:Lcza;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<CustomModelDataComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/CustomModelDataComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_49308 Lnet/minecraft/class_9280;field_49308:Lcom/mojang/serialization/Codec;
      official b Lcza;b:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<ByteBuf,CustomModelDataComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/CustomModelDataComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_49309 Lnet/minecraft/class_9280;field_49309:Lnet/minecraft/class_9139;
      official c Lcza;c:Lyn;
  • Constructor Details Link icon

  • Method Details Link icon

    • getValue Link icon

      @Nullable private static <T> T getValue(List<T> values, int index)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/component/type/CustomModelDataComponent;getValue(Ljava/util/List;I)Ljava/lang/Object;
      intermediary method_65364 Lnet/minecraft/class_9280;method_65364(Ljava/util/List;I)Ljava/lang/Object;
      official a Lcza;a(Ljava/util/List;I)Ljava/lang/Object;
    • getFloat Link icon

      @Nullable public @Nullable Float getFloat(int index)
      Mappings:
      Namespace Name Mixin selector
      named getFloat Lnet/minecraft/component/type/CustomModelDataComponent;getFloat(I)Ljava/lang/Float;
      intermediary method_65362 Lnet/minecraft/class_9280;method_65362(I)Ljava/lang/Float;
      official a Lcza;a(I)Ljava/lang/Float;
    • getFlag Link icon

      @Nullable public @Nullable Boolean getFlag(int index)
      Mappings:
      Namespace Name Mixin selector
      named getFlag Lnet/minecraft/component/type/CustomModelDataComponent;getFlag(I)Ljava/lang/Boolean;
      intermediary method_65365 Lnet/minecraft/class_9280;method_65365(I)Ljava/lang/Boolean;
      official b Lcza;b(I)Ljava/lang/Boolean;
    • getString Link icon

      @Nullable public @Nullable String getString(int index)
      Mappings:
      Namespace Name Mixin selector
      named getString Lnet/minecraft/component/type/CustomModelDataComponent;getString(I)Ljava/lang/String;
      intermediary method_65366 Lnet/minecraft/class_9280;method_65366(I)Ljava/lang/String;
      official c Lcza;c(I)Ljava/lang/String;
    • getColor Link icon

      @Nullable public @Nullable Integer getColor(int index)
      Mappings:
      Namespace Name Mixin selector
      named getColor Lnet/minecraft/component/type/CustomModelDataComponent;getColor(I)Ljava/lang/Integer;
      intermediary method_65367 Lnet/minecraft/class_9280;method_65367(I)Ljava/lang/Integer;
      official d Lcza;d(I)Ljava/lang/Integer;
    • toString Link icon

      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 Link icon

      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 Link icon

      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.
    • floats Link icon

      public List<Float> floats()
      Returns the value of the floats record component.
      Returns:
      the value of the floats record component
    • flags Link icon

      public List<Boolean> flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • strings Link icon

      public List<String> strings()
      Returns the value of the strings record component.
      Returns:
      the value of the strings record component
    • colors Link icon

      public List<Integer> colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component