Package net.minecraft.command.arguments
Class ScoreHolderArgument.NameProvider
- java.lang.Object
-
- net.minecraft.command.arguments.ScoreHolderArgument.NameProvider
-
- All Implemented Interfaces:
ScoreHolderArgument.INameProvider
- Enclosing class:
- ScoreHolderArgument
public static class ScoreHolderArgument.NameProvider extends java.lang.Object implements ScoreHolderArgument.INameProvider
-
-
Field Summary
Fields Modifier and Type Field Description private EntitySelector
selector
-
Constructor Summary
Constructors Constructor Description NameProvider(EntitySelector p_i47977_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getNames(CommandSource p_getNames_1_, java.util.function.Supplier<java.util.Collection<java.lang.String>> p_getNames_2_)
-
-
-
Field Detail
-
selector
private final EntitySelector selector
-
-
Constructor Detail
-
NameProvider
public NameProvider(EntitySelector p_i47977_1_)
-
-
Method Detail
-
getNames
public java.util.Collection<java.lang.String> getNames(CommandSource p_getNames_1_, java.util.function.Supplier<java.util.Collection<java.lang.String>> p_getNames_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
getNames
in interfaceScoreHolderArgument.INameProvider
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-