public class FunctionManager extends java.lang.Object implements ITickable, IResourceManagerReloadListener
Modifier and Type | Class and Description |
---|---|
static class |
FunctionManager.QueuedCommand |
Modifier and Type | Field and Description |
---|---|
static int |
PATH_PREFIX_LENGTH |
static int |
PATH_SUFFIX_LENGTH |
Constructor and Description |
---|
FunctionManager(MinecraftServer p_i47920_1_) |
Modifier and Type | Method and Description |
---|---|
int |
execute(FunctionObject p_195447_1_,
CommandSource p_195447_2_) |
com.mojang.brigadier.CommandDispatcher<CommandSource> |
getCommandDispatcher() |
CommandSource |
getCommandSource() |
FunctionObject |
getFunction(ResourceLocation id) |
java.util.Map<ResourceLocation,FunctionObject> |
getFunctions() |
int |
getMaxCommandChainLength() |
MinecraftServer |
getServer() |
TagCollection<FunctionObject> |
getTagCollection() |
void |
onResourceManagerReload(IResourceManager resourceManager) |
void |
tick() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResourceType
public static final int PATH_PREFIX_LENGTH
public static final int PATH_SUFFIX_LENGTH
public FunctionManager(MinecraftServer p_i47920_1_)
@Nullable public FunctionObject getFunction(ResourceLocation id)
public MinecraftServer getServer()
public int getMaxCommandChainLength()
public java.util.Map<ResourceLocation,FunctionObject> getFunctions()
public com.mojang.brigadier.CommandDispatcher<CommandSource> getCommandDispatcher()
public int execute(FunctionObject p_195447_1_, CommandSource p_195447_2_)
public void onResourceManagerReload(IResourceManager resourceManager)
onResourceManagerReload
in interface IResourceManagerReloadListener
public CommandSource getCommandSource()
public TagCollection<FunctionObject> getTagCollection()