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/BlockNbtDataSource- intermediary - net/minecraft/class_2575- official - xq- named - rawPos- intermediary - comp_733- official - d- named - pos- intermediary - comp_734- official - e
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.text.NbtDataSourceNbtDataSource.Type<T extends NbtDataSource>
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBlockNbtDataSource(String rawPath) BlockNbtDataSource(String rawPath, @Nullable PosArgument posArgument) 
- 
Method SummaryModifier 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- 
rawPosThe field for therawPosrecord component.
- 
posThe field for theposrecord component.
- 
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- Lxq;a:Lcom/mojang/serialization/MapCodec;
 
- 
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- Lxq;b:Lxr$a;
 
 
- 
- 
Constructor Details- 
BlockNbtDataSource- 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>- Lxq;<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;)V- intermediary - <init>- Lnet/minecraft/class_2575;<init>(Ljava/lang/String;Lnet/minecraft/class_2267;)V- official - <init>- Lxq;<init>(Ljava/lang/String;Lgv;)V
 
 
- 
- 
Method Details- 
parsePos- 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- Lxq;a(Ljava/lang/String;)Lgv;
 
- 
get- Specified by:
- getin 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- Lxr;a(Lex;)Ljava/util/stream/Stream;
 
- 
getType- Specified by:
- getTypein 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- Lxr;a()Lxr$a;
 
- 
toStringReturns 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.
- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
rawPosReturns the value of therawPosrecord component.- Returns:
- the value of the rawPosrecord component
 
- 
posReturns the value of theposrecord component.- Returns:
- the value of the posrecord component
 
 
-