Package net.minecraft.server.function
Class CommandFunction
java.lang.Object
net.minecraft.server.function.CommandFunction
- Direct Known Subclasses:
CommandFunction.class_8641
- Mappings:
Namespace Name official dnintermediary net/minecraft/class_2158named net/minecraft/server/function/CommandFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classstatic classstatic classA standard element of a command function.static interfacestatic classA synthetic element to be stored in aCommandFunctionManager.Entry.static classA lazy reference to another command function that may or may not exist. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CommandFunction.Element[](package private) final Identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandFunctioncreate(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines) Parses a function in the context ofsource.getId()private static booleanmethod_52592(CharSequence charSequence) private static booleanmethod_52593(String string) static CommandFunction.class_8642method_52594(String string, int int2) method_52595(@Nullable NbtCompound nbtCompound, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher, ServerCommandSource serverCommandSource)
-
Field Details
-
elements
- Mappings:
Namespace Name Mixin selector official aLdn;a:[Ldn$d;intermediary field_9805Lnet/minecraft/class_2158;field_9805:[Lnet/minecraft/class_2158$class_2161;named elementsLnet/minecraft/server/function/CommandFunction;elements:[Lnet/minecraft/server/function/CommandFunction$Element;
-
id
- Mappings:
Namespace Name Mixin selector official bLdn;b:Laep;intermediary field_9806Lnet/minecraft/class_2158;field_9806:Lnet/minecraft/class_2960;named idLnet/minecraft/server/function/CommandFunction;id:Lnet/minecraft/util/Identifier;
-
-
Constructor Details
-
CommandFunction
- Mappings:
Namespace Name Mixin selector official <init>Ldn;<init>(Laep;[Ldn$d;)Vintermediary <init>Lnet/minecraft/class_2158;<init>(Lnet/minecraft/class_2960;[Lnet/minecraft/class_2158$class_2161;)Vnamed <init>Lnet/minecraft/server/function/CommandFunction;<init>(Lnet/minecraft/util/Identifier;[Lnet/minecraft/server/function/CommandFunction$Element;)V
-
-
Method Details
-
getId
- Mappings:
Namespace Name Mixin selector official aLdn;a()Laep;intermediary method_9194Lnet/minecraft/class_2158;method_9194()Lnet/minecraft/class_2960;named getIdLnet/minecraft/server/function/CommandFunction;getId()Lnet/minecraft/util/Identifier;
-
getElements
- Mappings:
Namespace Name Mixin selector official bLdn;b()[Ldn$d;intermediary method_9193Lnet/minecraft/class_2158;method_9193()[Lnet/minecraft/class_2158$class_2161;named getElementsLnet/minecraft/server/function/CommandFunction;getElements()[Lnet/minecraft/server/function/CommandFunction$Element;
-
method_52595
public CommandFunction method_52595(@Nullable @Nullable NbtCompound nbtCompound, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher, ServerCommandSource serverCommandSource) throws class_8643 - Throws:
class_8643- Mappings:
Namespace Name Mixin selector official aLdn;a(Lqs;Lcom/mojang/brigadier/CommandDispatcher;Lds;)Ldn;intermediary method_52595Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;)Lnet/minecraft/class_2158;named method_52595Lnet/minecraft/server/function/CommandFunction;method_52595(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/ServerCommandSource;)Lnet/minecraft/server/function/CommandFunction;
-
method_52592
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/CharSequence;)Zintermediary method_52592Lnet/minecraft/class_2158;method_52592(Ljava/lang/CharSequence;)Znamed method_52592Lnet/minecraft/server/function/CommandFunction;method_52592(Ljava/lang/CharSequence;)Z
-
create
public static CommandFunction create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines) Parses a function in the context ofsource.Any syntax errors, such as improper comment lines or unknown commands, will be thrown at this point.
- Parameters:
lines- the raw lines (including comments) read from a function file- Mappings:
Namespace Name Mixin selector official aLdn;a(Laep;Lcom/mojang/brigadier/CommandDispatcher;Lds;Ljava/util/List;)Ldn;intermediary method_9195Lnet/minecraft/class_2158;method_9195(Lnet/minecraft/class_2960;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_2168;Ljava/util/List;)Lnet/minecraft/class_2158;named createLnet/minecraft/server/function/CommandFunction;create(Lnet/minecraft/util/Identifier;Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/List;)Lnet/minecraft/server/function/CommandFunction;
-
method_52594
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;I)Ldn$f;intermediary method_52594Lnet/minecraft/class_2158;method_52594(Ljava/lang/String;I)Lnet/minecraft/class_2158$class_8642;named method_52594Lnet/minecraft/server/function/CommandFunction;method_52594(Ljava/lang/String;I)Lnet/minecraft/server/function/CommandFunction$class_8642;
-
method_52593
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;)Zintermediary method_52593Lnet/minecraft/class_2158;method_52593(Ljava/lang/String;)Znamed method_52593Lnet/minecraft/server/function/CommandFunction;method_52593(Ljava/lang/String;)Z
-