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 tw
intermediary net/minecraft/class_2575
named net/minecraft/text/BlockNbtDataSource
official a
intermediary comp_733
named rawPos
official b
intermediary comp_734
named pos
  • Field Details

  • Constructor Details

    • BlockNbtDataSource

      public BlockNbtDataSource(String rawPath)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ltw;<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> Ltw;<init>(Ljava/lang/String;Lfk;)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 Ltw;a(Ljava/lang/String;)Lfk;
      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 getData Ltx;getData(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;
    • 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