private class EntitySelectorTest.ExampleCustomSelector extends java.lang.Object implements IEntitySelectorType
| Modifier | Constructor and Description | 
|---|---|
private  | 
ExampleCustomSelector()  | 
| Modifier and Type | Method and Description | 
|---|---|
EntitySelector | 
build(EntitySelectorParser parser)
Returns an  
EntitySelector based on the given EntitySelectorParser. | 
ITextComponent | 
getSuggestionTooltip()
Returns an  
ITextComponent containing a short description for this selector type. | 
public EntitySelector build(EntitySelectorParser parser) throws com.mojang.brigadier.exceptions.CommandSyntaxException
IEntitySelectorTypeEntitySelector based on the given EntitySelectorParser. EntitySelectorParser.getReader() to read extra arguments and EntitySelectorParser.addFilter(java.util.function.Predicate<net.minecraft.entity.Entity>) to add the corresponding filters. CommandSyntaxException.build in interface IEntitySelectorTypecom.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic ITextComponent getSuggestionTooltip()
IEntitySelectorTypeITextComponent containing a short description for this selector type.getSuggestionTooltip in interface IEntitySelectorType