Package net.minecraft.text
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 ul
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 Summary
-
Constructor Summary
ConstructorDescriptionBlockNbtDataSource
(String rawPath) BlockNbtDataSource
(String rawPath, @Nullable PosArgument posArgument) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.get
(ServerCommandSource source) int
hashCode()
Returns a hash code value for this object.private static @Nullable PosArgument
@Nullable PosArgument
pos()
Returns the value of thepos
record component.rawPos()
Returns the value of therawPos
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
BlockNbtDataSource
- Mappings:
Namespace Name Mixin selector official <init>
Lul;<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
- Mappings:
Namespace Name Mixin selector official <init>
Lul;<init>(Ljava/lang/String;Lfm;)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
- Mappings:
Namespace Name Mixin selector official a
Lul;a(Ljava/lang/String;)Lfm;
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
- Specified by:
get
in interfaceNbtDataSource
- Mappings:
Namespace Name Mixin selector official getData
Lum;getData(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;
-
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. -
equals
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 withObjects::equals(Object,Object)
. -
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. -
rawPos
Returns the value of therawPos
record component.- Returns:
- the value of the
rawPos
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-