Package net.minecraft.text
Record Class EntityNbtDataSource
java.lang.Object
java.lang.Record
net.minecraft.text.EntityNbtDataSource
- Record Components:
rawSelector-selector-
- All Implemented Interfaces:
NbtDataSource
public record EntityNbtDataSource(String rawSelector, @Nullable EntitySelector selector)
extends Record
implements NbtDataSource
- Mappings:
Namespace Name named net/minecraft/text/EntityNbtDataSourceintermediary net/minecraft/class_2576official ycnamed rawSelectorintermediary comp_735official dnamed selectorintermediary comp_736official 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<EntityNbtDataSource> private final StringThe field for therawSelectorrecord component.private final @Nullable EntitySelectorThe field for theselectorrecord component.static final NbtDataSource.Type<EntityNbtDataSource> -
Constructor Summary
ConstructorsConstructorDescriptionEntityNbtDataSource(String rawPath) EntityNbtDataSource(String rawPath, @Nullable EntitySelector entitySelector) -
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 EntitySelectorparseSelector(String rawSelector) Returns the value of therawSelectorrecord component.selector()Returns the value of theselectorrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
rawSelector
The field for therawSelectorrecord component. -
selector
The field for theselectorrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/EntityNbtDataSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_46617Lnet/minecraft/class_2576;field_46617:Lcom/mojang/serialization/MapCodec;official aLyc;a:Lcom/mojang/serialization/MapCodec;
-
TYPE
- Mappings:
Namespace Name Mixin selector named TYPELnet/minecraft/text/EntityNbtDataSource;TYPE:Lnet/minecraft/text/NbtDataSource$Type;intermediary field_46618Lnet/minecraft/class_2576;field_46618:Lnet/minecraft/class_7419$class_8827;official bLyc;b:Lyb$a;
-
-
Constructor Details
-
EntityNbtDataSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/EntityNbtDataSource;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2576;<init>(Ljava/lang/String;)Vofficial <init>Lyc;<init>(Ljava/lang/String;)V
-
EntityNbtDataSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/EntityNbtDataSource;<init>(Ljava/lang/String;Lnet/minecraft/command/EntitySelector;)Vintermediary <init>Lnet/minecraft/class_2576;<init>(Ljava/lang/String;Lnet/minecraft/class_2300;)Vofficial <init>Lyc;<init>(Ljava/lang/String;Lhi;)V
-
-
Method Details
-
parseSelector
- Mappings:
Namespace Name Mixin selector named parseSelectorLnet/minecraft/text/EntityNbtDataSource;parseSelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;intermediary method_10923Lnet/minecraft/class_2576;method_10923(Ljava/lang/String;)Lnet/minecraft/class_2300;official aLyc;a(Ljava/lang/String;)Lhi;
-
get
public Stream<NbtCompound> get(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getin interfaceNbtDataSource- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- 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. -
rawSelector
Returns the value of therawSelectorrecord component.- Returns:
- the value of the
rawSelectorrecord component
-
selector
Returns the value of theselectorrecord component.- Returns:
- the value of the
selectorrecord component
-