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 yw
named rawPos
intermediary comp_733
official d
named pos
intermediary comp_734
official e
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.NbtDataSource
NbtDataSource.Type<T extends NbtDataSource>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<BlockNbtDataSource> private final @Nullable PosArgument
The field for thepos
record component.private final String
The field for therawPos
record component.static final NbtDataSource.Type
<BlockNbtDataSource> -
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) getType()
int
hashCode()
Returns a hash code value for this object.private static @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
-
rawPos
The field for therawPos
record component. -
pos
The field for thepos
record 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
Lyw;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
Lyw;b:Lyx$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>
Lyw;<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>
Lyw;<init>(Ljava/lang/String;Lgu;)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
Lyw;a(Ljava/lang/String;)Lgu;
-
get
- Specified by:
get
in interfaceNbtDataSource
- 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
Lyx;a(Lew;)Ljava/util/stream/Stream;
-
getType
- Specified by:
getType
in interfaceNbtDataSource
- 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
Lyx;a()Lyx$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 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
-