Record Class StorageNbtDataSource

java.lang.Object
java.lang.Record
net.minecraft.text.StorageNbtDataSource
Record Components:
id -
All Implemented Interfaces:
NbtDataSource

public record StorageNbtDataSource(Identifier id) extends Record implements NbtDataSource
Mappings:
Namespace Name
official uv
intermediary net/minecraft/class_4616
named net/minecraft/text/StorageNbtDataSource
official d
intermediary comp_738
named id
  • Field Details

    • id

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

      public static final com.mojang.serialization.MapCodec<StorageNbtDataSource> field_46631
      Mappings:
      Namespace Name Mixin selector
      official a Luv;a:Lcom/mojang/serialization/MapCodec;
      intermediary field_46631 Lnet/minecraft/class_4616;field_46631:Lcom/mojang/serialization/MapCodec;
      named field_46631 Lnet/minecraft/text/StorageNbtDataSource;field_46631:Lcom/mojang/serialization/MapCodec;
    • field_46632

      public static final NbtDataSource.class_8827<StorageNbtDataSource> field_46632
      Mappings:
      Namespace Name Mixin selector
      official b Luv;b:Lun$a;
      intermediary field_46632 Lnet/minecraft/class_4616;field_46632:Lnet/minecraft/class_7419$class_8827;
      named field_46632 Lnet/minecraft/text/StorageNbtDataSource;field_46632:Lnet/minecraft/text/NbtDataSource$class_8827;
  • Constructor Details

    • StorageNbtDataSource

      public StorageNbtDataSource(Identifier identifier)
  • Method Details

    • get

      public Stream<NbtCompound> get(ServerCommandSource source)
      Specified by:
      get in interface NbtDataSource
      Mappings:
      Namespace Name Mixin selector
      official a Lun;a(Ldt;)Ljava/util/stream/Stream;
      intermediary method_10916 Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;
      named get Lnet/minecraft/text/NbtDataSource;get(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
    • method_54225

      public NbtDataSource.class_8827<?> method_54225()
      Specified by:
      method_54225 in interface NbtDataSource
      Mappings:
      Namespace Name Mixin selector
      official a Lun;a()Lun$a;
      intermediary method_54225 Lnet/minecraft/class_7419;method_54225()Lnet/minecraft/class_7419$class_8827;
      named method_54225 Lnet/minecraft/text/NbtDataSource;method_54225()Lnet/minecraft/text/NbtDataSource$class_8827;
    • toString

      public 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