Package | Description |
---|---|
net.minecraft.command.arguments | |
net.minecraftforge.common.command | |
net.minecraftforge.debug.chat |
Modifier and Type | Field and Description |
---|---|
java.util.function.Predicate<EntitySelectorParser> |
EntityOptions.OptionHandler.canHandle |
Modifier and Type | Method and Description |
---|---|
static EntityOptions.IFilter |
EntityOptions.get(EntitySelectorParser parser,
java.lang.String id,
int cursor) |
void |
EntityOptions.IFilter.handle(EntitySelectorParser p_handle_1_) |
static void |
EntityOptions.suggestOptions(EntitySelectorParser parser,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static void |
EntityOptions.register(java.lang.String id,
EntityOptions.IFilter handler,
java.util.function.Predicate<EntitySelectorParser> p_202024_2_,
ITextComponent tooltip) |
Constructor and Description |
---|
OptionHandler(EntityOptions.IFilter handlerIn,
java.util.function.Predicate<EntitySelectorParser> p_i48717_2_,
ITextComponent tooltipIn) |
Modifier and Type | Method and Description |
---|---|
EntitySelector |
IEntitySelectorType.build(EntitySelectorParser parser)
Returns an
EntitySelector based on the given EntitySelectorParser . |
static EntitySelector |
EntitySelectorManager.parseSelector(EntitySelectorParser parser)
This method is called in
parse() If the REGISTRY does not contain a custom selector for the command being parsed, this method returns null and the vanilla logic in parseSelector() is used. |
Modifier and Type | Method and Description |
---|---|
EntitySelector |
EntitySelectorTest.ExampleCustomSelector.build(EntitySelectorParser parser) |
private void |
EntitySelectorTest.healthArgument(EntitySelectorParser parser)
Example for a custom selector argument, checks for the health of the entity
|