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 named net/minecraft/text/BlockNbtDataSourceintermediary net/minecraft/class_2575official yanamed rawPosintermediary comp_733official dnamed posintermediary comp_734official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.NbtDataSource
NbtDataSource.Type<T extends NbtDataSource> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BlockNbtDataSource> private final @Nullable PosArgumentThe field for theposrecord component.private final StringThe field for therawPosrecord component.static final NbtDataSource.Type<BlockNbtDataSource> -
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) getType()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
-
rawPos
The field for therawPosrecord component. -
pos
The field for theposrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/BlockNbtDataSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46614Lnet/minecraft/class_2575;field_46614:Lcom/mojang/serialization/MapCodec;official aLya;a:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/text/BlockNbtDataSource;TYPE:Lnet/minecraft/text/NbtDataSource$Type;intermediary field_46615Lnet/minecraft/class_2575;field_46615:Lnet/minecraft/class_7419$class_8827;official bLya;b:Lyb$a;
-
-
Constructor Details
-
BlockNbtDataSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2575;<init>(Ljava/lang/String;)Vofficial <init>Lya;<init>(Ljava/lang/String;)V
-
BlockNbtDataSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/BlockNbtDataSource;<init>(Ljava/lang/String;Lnet/minecraft/command/argument/PosArgument;)Vintermediary <init>Lnet/minecraft/class_2575;<init>(Ljava/lang/String;Lnet/minecraft/class_2267;)Vofficial <init>Lya;<init>(Ljava/lang/String;Lgr;)V
-
-
Method Details
-
parsePos
- Mappings:
Namespace Name Mixin selector named parsePosLnet/minecraft/text/BlockNbtDataSource;parsePos(Ljava/lang/String;)Lnet/minecraft/command/argument/PosArgument;intermediary method_16121Lnet/minecraft/class_2575;method_16121(Ljava/lang/String;)Lnet/minecraft/class_2267;official aLya;a(Ljava/lang/String;)Lgr;
-
get
- Specified by:
getin interfaceNbtDataSource- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/text/NbtDataSource;get(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;intermediary method_10916Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;official aLyb;a(Let;)Ljava/util/stream/Stream;
-
getType
- Specified by:
getTypein interfaceNbtDataSource- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/text/NbtDataSource;getType()Lnet/minecraft/text/NbtDataSource$Type;intermediary method_54225Lnet/minecraft/class_7419;method_54225()Lnet/minecraft/class_7419$class_8827;official aLyb;a()Lyb$a;
-
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
-