Record Class BlockNbtDataSource

java.lang.Object
java.lang.Record
net.minecraft.text.BlockNbtDataSource
Record Components:
rawPos -
pos -
All Implemented Interfaces:
NbtDataSource

public record BlockNbtDataSource(String rawPos, @Nullable PosArgument pos) extends Record implements NbtDataSource
Mappings:
Namespace Name
official wg
intermediary net/minecraft/class_2575
named net/minecraft/text/BlockNbtDataSource
official d
intermediary comp_733
named rawPos
official e
intermediary comp_734
named pos
  • Field Details

    • rawPos

      private final String rawPos
      The field for the rawPos record component.
    • pos

      @Nullable private final @Nullable PosArgument pos
      The field for the pos record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<BlockNbtDataSource> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lwg;a:Lcom/mojang/serialization/MapCodec;
      intermediary field_46614 Lnet/minecraft/class_2575;field_46614:Lcom/mojang/serialization/MapCodec;
      named CODEC Lnet/minecraft/text/BlockNbtDataSource;CODEC:Lcom/mojang/serialization/MapCodec;
    • TYPE

      public static final NbtDataSource.Type<BlockNbtDataSource> TYPE
      Mappings:
      Namespace Name Mixin selector
      official b Lwg;b:Lwh$a;
      intermediary field_46615 Lnet/minecraft/class_2575;field_46615:Lnet/minecraft/class_7419$class_8827;
      named TYPE Lnet/minecraft/text/BlockNbtDataSource;TYPE:Lnet/minecraft/text/NbtDataSource$Type;
  • Constructor Details

    • BlockNbtDataSource

      public BlockNbtDataSource(String rawPath)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwg;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2575;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;)V
    • BlockNbtDataSource

      public BlockNbtDataSource(String rawPath, @Nullable @Nullable PosArgument posArgument)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwg;<init>(Ljava/lang/String;Lfo;)V
      intermediary <init> Lnet/minecraft/class_2575;<init>(Ljava/lang/String;Lnet/minecraft/class_2267;)V
      named <init> Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/PosArgument;)V
  • Method Details

    • parsePos

      @Nullable private static @Nullable PosArgument parsePos(String string)
      Mappings:
      Namespace Name Mixin selector
      official a Lwg;a(Ljava/lang/String;)Lfo;
      intermediary method_16121 Lnet/minecraft/class_2575;method_16121(Ljava/lang/String;)Lnet/minecraft/class_2267;
      named parsePos Lnet/minecraft/text/BlockNbtDataSource;parsePos(Ljava/lang/String;)Lnet/minecraft/command/argument/PosArgument;
    • get

      public Stream<NbtCompound> get(ServerCommandSource source)
      Specified by:
      get in interface NbtDataSource
      Mappings:
      Namespace Name Mixin selector
      official a Lwh;a(Lds;)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;
    • getType

      public NbtDataSource.Type<?> getType()
      Specified by:
      getType in interface NbtDataSource
      Mappings:
      Namespace Name Mixin selector
      official a Lwh;a()Lwh$a;
      intermediary method_54225 Lnet/minecraft/class_7419;method_54225()Lnet/minecraft/class_7419$class_8827;
      named getType Lnet/minecraft/text/NbtDataSource;getType()Lnet/minecraft/text/NbtDataSource$Type;
    • 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
    • equals

      public boolean equals(Object o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hashCode

      public 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
    • rawPos

      public String rawPos()
      Returns the value of the rawPos record component.
      Returns:
      the value of the rawPos record component
    • pos

      Returns the value of the pos record component.
      Returns:
      the value of the pos record component