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 intermediary net/minecraft/class_2575official twnamed net/minecraft/text/BlockNbtDataSourceintermediary comp_733official anamed rawPosintermediary comp_734official bnamed pos
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockNbtDataSource(String rawPath) BlockNbtDataSource(String rawPath, @Nullable PosArgument posArgument) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.get(ServerCommandSource source) inthashCode()Returns a hash code value for this object.private static @Nullable PosArgumentpos()Returns the value of theposrecord component.rawPos()Returns the value of therawPosrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
BlockNbtDataSource
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2575;<init>(Ljava/lang/String;)Vofficial <init>Ltw;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;)V
-
BlockNbtDataSource
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_2575;<init>(Ljava/lang/String;Lnet/minecraft/class_2267;)Vofficial <init>Ltw;<init>(Ljava/lang/String;Lfk;)Vnamed <init>Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/PosArgument;)V
-
-
Method Details
-
parsePos
- Mappings:
Namespace Name Mixin selector intermediary method_16121Lnet/minecraft/class_2575;method_16121(Ljava/lang/String;)Lnet/minecraft/class_2267;official aLtw;a(Ljava/lang/String;)Lfk;named parsePosLnet/minecraft/text/BlockNbtDataSource;parsePos(Ljava/lang/String;)Lnet/minecraft/command/argument/PosArgument;
-
get
- Specified by:
getin interfaceNbtDataSource- Mappings:
Namespace Name Mixin selector intermediary method_10916Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;official getDataLtx;getData(Lds;)Ljava/util/stream/Stream;named getLnet/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 therawPosrecord component.- Returns:
- the value of the
rawPosrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-