public class EntityOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
EntityOptions.IFilter |
(package private) static class |
EntityOptions.OptionHandler |
Modifier and Type | Field and Description |
---|---|
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INAPPLICABLE_ENTITY_OPTION |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_ENTITY_TYPE |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_GAME_MODE |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
INVALID_SORT |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NEGATIVE_DISTANCE |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NEGATIVE_LEVEL |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
NONPOSITIVE_LIMIT |
private static java.util.Map<java.lang.String,EntityOptions.OptionHandler> |
REGISTRY |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
UNKNOWN_ENTITY_OPTION |
Constructor and Description |
---|
EntityOptions() |
Modifier and Type | Method and Description |
---|---|
static EntityOptions.IFilter |
get(EntitySelectorParser parser,
java.lang.String id,
int cursor) |
static void |
register(java.lang.String id,
EntityOptions.IFilter handler,
java.util.function.Predicate<EntitySelectorParser> p_202024_2_,
ITextComponent tooltip) |
static void |
registerOptions() |
static void |
suggestOptions(EntitySelectorParser parser,
com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
private static final java.util.Map<java.lang.String,EntityOptions.OptionHandler> REGISTRY
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_ENTITY_OPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INAPPLICABLE_ENTITY_OPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_DISTANCE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_LEVEL
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NONPOSITIVE_LIMIT
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_SORT
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_GAME_MODE
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_ENTITY_TYPE
public static void register(java.lang.String id, EntityOptions.IFilter handler, java.util.function.Predicate<EntitySelectorParser> p_202024_2_, ITextComponent tooltip)
public static void registerOptions()
public static EntityOptions.IFilter get(EntitySelectorParser parser, java.lang.String id, int cursor) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static void suggestOptions(EntitySelectorParser parser, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)