Package net.minecraft.server.function
Class CommandFunction
java.lang.Object
net.minecraft.server.function.CommandFunction
public class CommandFunction extends Object
- Mappings:
Namespace Name official cyintermediary net/minecraft/class_2158named net/minecraft/server/function/CommandFunction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandFunction.CommandElementstatic interfaceCommandFunction.Elementstatic classCommandFunction.FunctionElementstatic classCommandFunction.LazyContainer -
Field Summary
Fields Modifier and Type Field Description private CommandFunction.Element[]elementsprivate Identifierid -
Constructor Summary
Constructors Constructor Description CommandFunction(Identifier id, CommandFunction.Element[] elements) -
Method Summary
Modifier and Type Method Description static CommandFunctioncreate(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines)Parses a function in the context ofsource.CommandFunction.Element[]getElements()IdentifiergetId()
-
Field Details
-
elements
- Mappings:
Namespace Name Mixin selector official aLcy;a:[Lcy$c;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 bLcy;b:Lwb;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>Lcy;<init>(Lwb;[Lcy$c;)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 aLcy;a()Lwb;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 bLcy;b()[Lcy$c;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;
-
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 aLcy;a(Lwb;Lcom/mojang/brigadier/CommandDispatcher;Ldb;Ljava/util/List;)Lcy;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;
-