Package net.minecraft

Record Class class_11524

java.lang.Object
java.lang.Record
net.minecraft.class_11524
Record Components:
id -
additions -
All Implemented Interfaces:
class_11521

public record class_11524(Identifier id, Optional<NbtCompound> additions) extends Record implements class_11521
Mappings:
Namespace Name
named net/minecraft/class_11524
intermediary net/minecraft/class_11524
official asg
named id
intermediary comp_4397
official c
named additions
intermediary comp_4398
official d
  • Field Details

    • id

      private final Identifier id
      The field for the id record component.
    • additions

      private final Optional<NbtCompound> additions
      The field for the additions record component.
    • field_60976

      public static final com.mojang.serialization.MapCodec<class_11524> field_60976
      Mappings:
      Namespace Name Mixin selector
      named field_60976 Lnet/minecraft/class_11524;field_60976:Lcom/mojang/serialization/MapCodec;
      intermediary field_60976 Lnet/minecraft/class_11524;field_60976:Lcom/mojang/serialization/MapCodec;
      official b Lasg;b:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • getCodec

      public com.mojang.serialization.MapCodec<class_11524> getCodec()
      Specified by:
      getCodec in interface class_11521
      Mappings:
      Namespace Name Mixin selector
      named getCodec Lnet/minecraft/class_11521;getCodec()Lcom/mojang/serialization/MapCodec;
      intermediary method_71738 Lnet/minecraft/class_11521;method_71738()Lcom/mojang/serialization/MapCodec;
      official a Lasd;a()Lcom/mojang/serialization/MapCodec;
    • method_72068

      public Optional<ClickEvent> method_72068(Map<String,class_11521.class_11522> map)
      Specified by:
      method_72068 in interface class_11521
      Mappings:
      Namespace Name Mixin selector
      named method_72068 Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;
      intermediary method_72068 Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;
      official a Lasd;a(Ljava/util/Map;)Ljava/util/Optional;
    • 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.
    • id

      public Identifier id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • additions

      public Optional<NbtCompound> additions()
      Returns the value of the additions record component.
      Returns:
      the value of the additions record component