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 - official - ty- intermediary - net/minecraft/class_2576- named - net/minecraft/text/EntityNbtDataSource- official - a- intermediary - comp_735- named - rawSelector- official - b- intermediary - comp_736- named - selector
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final StringThe field for therawSelectorrecord component.private final @Nullable EntitySelectorThe field for theselectorrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionEntityNbtDataSource(String rawPath) EntityNbtDataSource(String rawPath, @Nullable EntitySelector entitySelector) 
- 
Method SummaryModifier 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 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- 
rawSelectorThe field for therawSelectorrecord component.
- 
selectorThe field for theselectorrecord component.
 
- 
- 
Constructor Details- 
EntityNbtDataSource- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lty;<init>(Ljava/lang/String;)V- intermediary - <init>- Lnet/minecraft/class_2576;<init>(Ljava/lang/String;)V- named - <init>- Lnet/minecraft/text/EntityNbtDataSource;<init>(Ljava/lang/String;)V
 
- 
EntityNbtDataSource- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lty;<init>(Ljava/lang/String;Lga;)V- intermediary - <init>- Lnet/minecraft/class_2576;<init>(Ljava/lang/String;Lnet/minecraft/class_2300;)V- named - <init>- Lnet/minecraft/text/EntityNbtDataSource;<init>(Ljava/lang/String;Lnet/minecraft/command/EntitySelector;)V
 
 
- 
- 
Method Details- 
parseSelector- Mappings:
- Namespace - Name - Mixin selector - official - a- Lty;a(Ljava/lang/String;)Lga;- intermediary - method_10923- Lnet/minecraft/class_2576;method_10923(Ljava/lang/String;)Lnet/minecraft/class_2300;- named - parseSelector- Lnet/minecraft/text/EntityNbtDataSource;parseSelector(Ljava/lang/String;)Lnet/minecraft/command/EntitySelector;
 
- 
getpublic Stream<NbtCompound> get(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- getin interface- NbtDataSource
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - official - getData- Ltx;getData(Lds;)Ljava/util/stream/Stream;- intermediary - method_10916- Lnet/minecraft/class_7419;method_10916(Lnet/minecraft/class_2168;)Ljava/util/stream/Stream;- named - get- Lnet/minecraft/text/NbtDataSource;get(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/stream/Stream;
 
- 
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.
- 
rawSelectorReturns the value of therawSelectorrecord component.- Returns:
- the value of the rawSelectorrecord component
 
- 
selectorReturns the value of theselectorrecord component.- Returns:
- the value of the selectorrecord component
 
 
-