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
named net/minecraft/text/BlockNbtDataSource
intermediary net/minecraft/class_2575
official xq
named rawPos
intermediary comp_733
official d
named pos
intermediary comp_734
official e
  • Field Details Link icon

    • rawPos Link icon

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

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

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

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

    • BlockNbtDataSource Link icon

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

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

    • parsePos Link icon

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

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

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

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

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

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

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

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