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 yw
named rawPos
intermediary comp_733
official d
named pos
intermediary comp_734
official e
  • 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
      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 Lyw;a:Lcom/mojang/serialization/MapCodec;
    • TYPE

      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 Lyw;b:Lyx$a;
  • Constructor Details

    • BlockNbtDataSource

      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> Lyw;<init>(Ljava/lang/String;)V
    • BlockNbtDataSource

      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> Lyw;<init>(Ljava/lang/String;Lgu;)V
  • Method Details

    • parsePos

      @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 Lyw;a(Ljava/lang/String;)Lgu;
    • get

      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 Lyx;a(Lew;)Ljava/util/stream/Stream;
    • getType

      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 Lyx;a()Lyx$a;
    • 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