public class EntitySelectorOptions extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
EntitySelectorOptions.SelectorHandler |
(package private) static class |
EntitySelectorOptions.SelectorOption |
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INAPPLICABLE_OPTION_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_MODE_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_TYPE_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
IRREVERSIBLE_SORT_EXCEPTION |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NEGATIVE_DISTANCE_EXCEPTION |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NEGATIVE_LEVEL_EXCEPTION |
private static Map<String,EntitySelectorOptions.SelectorOption> |
options |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TOO_SMALL_LEVEL_EXCEPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_OPTION_EXCEPTION |
Constructor and Description |
---|
EntitySelectorOptions() |
Modifier and Type | Method and Description |
---|---|
static EntitySelectorOptions.SelectorHandler |
getHandler(EntitySelectorReader reader,
String option,
int restoreCursor) |
private static void |
putOption(String id,
EntitySelectorOptions.SelectorHandler handler,
Predicate<EntitySelectorReader> condition,
Text description) |
static void |
register() |
static void |
suggestOptions(EntitySelectorReader reader,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder) |
private static final Map<String,EntitySelectorOptions.SelectorOption> options
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_OPTION_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INAPPLICABLE_OPTION_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_DISTANCE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_LEVEL_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_SMALL_LEVEL_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType IRREVERSIBLE_SORT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_MODE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_TYPE_EXCEPTION
private static void putOption(String id, EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description)
public static void register()
public static EntitySelectorOptions.SelectorHandler getHandler(EntitySelectorReader reader, String option, int restoreCursor) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static void suggestOptions(EntitySelectorReader reader, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder)