类 EntitySelectorOptions
- java.lang.Object
-
- net.minecraft.command.EntitySelectorOptions
-
public class EntitySelectorOptions extends Object
- Mappings:
Namespace Name official fjintermediary net/minecraft/class_2306named net/minecraft/command/EntitySelectorOptions
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceEntitySelectorOptions.SelectorHandler(专用程序包) static classEntitySelectorOptions.SelectorOption
-
字段概要
字段 修饰符和类型 字段 说明 static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINAPPLICABLE_OPTION_EXCEPTIONstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_MODE_EXCEPTIONstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeINVALID_TYPE_EXCEPTIONstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeIRREVERSIBLE_SORT_EXCEPTIONstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeNEGATIVE_DISTANCE_EXCEPTIONstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeNEGATIVE_LEVEL_EXCEPTIONprivate static Map<String,EntitySelectorOptions.SelectorOption>optionsstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeTOO_SMALL_LEVEL_EXCEPTIONstatic com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeUNKNOWN_OPTION_EXCEPTION
-
构造器概要
构造器 构造器 说明 EntitySelectorOptions()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static EntitySelectorOptions.SelectorHandlergetHandler(EntitySelectorReader reader, String option, int restoreCursor)private static voidputOption(String id, EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description)static voidregister()static voidsuggestOptions(EntitySelectorReader reader, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder)
-
-
-
字段详细资料
-
options
private static final Map<String,EntitySelectorOptions.SelectorOption> options
- Mappings:
Namespace Name Mixin selector official iLfj;i:Ljava/util/Map;intermediary field_10891Lnet/minecraft/class_2306;field_10891:Ljava/util/Map;named optionsLnet/minecraft/command/EntitySelectorOptions;options:Ljava/util/Map;
-
UNKNOWN_OPTION_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_OPTION_EXCEPTION
- Mappings:
Namespace Name Mixin selector official aLfj;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10885Lnet/minecraft/class_2306;field_10885:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named UNKNOWN_OPTION_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;UNKNOWN_OPTION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INAPPLICABLE_OPTION_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INAPPLICABLE_OPTION_EXCEPTION
- Mappings:
Namespace Name Mixin selector official bLfj;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10887Lnet/minecraft/class_2306;field_10887:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INAPPLICABLE_OPTION_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;INAPPLICABLE_OPTION_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
NEGATIVE_DISTANCE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_DISTANCE_EXCEPTION
- Mappings:
Namespace Name Mixin selector official cLfj;c:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10890Lnet/minecraft/class_2306;field_10890:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named NEGATIVE_DISTANCE_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;NEGATIVE_DISTANCE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
NEGATIVE_LEVEL_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType NEGATIVE_LEVEL_EXCEPTION
- Mappings:
Namespace Name Mixin selector official dLfj;d:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10893Lnet/minecraft/class_2306;field_10893:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named NEGATIVE_LEVEL_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;NEGATIVE_LEVEL_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
TOO_SMALL_LEVEL_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TOO_SMALL_LEVEL_EXCEPTION
- Mappings:
Namespace Name Mixin selector official eLfj;e:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_10886Lnet/minecraft/class_2306;field_10886:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named TOO_SMALL_LEVEL_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;TOO_SMALL_LEVEL_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
IRREVERSIBLE_SORT_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType IRREVERSIBLE_SORT_EXCEPTION
- Mappings:
Namespace Name Mixin selector official fLfj;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10888Lnet/minecraft/class_2306;field_10888:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named IRREVERSIBLE_SORT_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;IRREVERSIBLE_SORT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_MODE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_MODE_EXCEPTION
- Mappings:
Namespace Name Mixin selector official gLfj;g:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10889Lnet/minecraft/class_2306;field_10889:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INVALID_MODE_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;INVALID_MODE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_TYPE_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_TYPE_EXCEPTION
- Mappings:
Namespace Name Mixin selector official hLfj;h:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;intermediary field_10892Lnet/minecraft/class_2306;field_10892:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;named INVALID_TYPE_EXCEPTIONLnet/minecraft/command/EntitySelectorOptions;INVALID_TYPE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
方法详细资料
-
putOption
private static void putOption(String id, EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description)
- Mappings:
Namespace Name Mixin selector official aLfj;a(Ljava/lang/String;Lfj$a;Ljava/util/function/Predicate;Lon;)Vintermediary method_9961Lnet/minecraft/class_2306;method_9961(Ljava/lang/String;Lnet/minecraft/class_2306$class_2307;Ljava/util/function/Predicate;Lnet/minecraft/class_2561;)Vnamed putOptionLnet/minecraft/command/EntitySelectorOptions;putOption(Ljava/lang/String;Lnet/minecraft/command/EntitySelectorOptions$SelectorHandler;Ljava/util/function/Predicate;Lnet/minecraft/text/Text;)V
-
register
public static void register()
- Mappings:
Namespace Name Mixin selector official aLfj;a()Vintermediary method_9960Lnet/minecraft/class_2306;method_9960()Vnamed registerLnet/minecraft/command/EntitySelectorOptions;register()V
-
getHandler
public static EntitySelectorOptions.SelectorHandler getHandler(EntitySelectorReader reader, String option, int restoreCursor) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLfj;a(Lfi;Ljava/lang/String;I)Lfj$a;intermediary method_9976Lnet/minecraft/class_2306;method_9976(Lnet/minecraft/class_2303;Ljava/lang/String;I)Lnet/minecraft/class_2306$class_2307;named getHandlerLnet/minecraft/command/EntitySelectorOptions;getHandler(Lnet/minecraft/command/EntitySelectorReader;Ljava/lang/String;I)Lnet/minecraft/command/EntitySelectorOptions$SelectorHandler;
-
suggestOptions
public static void suggestOptions(EntitySelectorReader reader, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionBuilder)
- Mappings:
Namespace Name Mixin selector official aLfj;a(Lfi;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Vintermediary method_9930Lnet/minecraft/class_2306;method_9930(Lnet/minecraft/class_2303;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Vnamed suggestOptionsLnet/minecraft/command/EntitySelectorOptions;suggestOptions(Lnet/minecraft/command/EntitySelectorReader;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)V
-
-