public class CommandFunction extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandFunction.FunctionLine |
Constructor and Description |
---|
CommandFunction(String namespace,
String name,
List<CommandFunction.FunctionLine> lines) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
void |
execute(org.bukkit.command.CommandSender sender)
Calls the function.
|
String |
getFullName() |
List<CommandFunction.FunctionLine> |
getLines() |
String |
getName() |
String |
getNamespace() |
int |
hashCode() |
static CommandFunction |
read(String namespace,
String name,
File file)
Reads a function from a file.
|
String |
toString() |
public CommandFunction(String namespace, String name, List<CommandFunction.FunctionLine> lines)
public static CommandFunction read(String namespace, String name, File file) throws IOException
namespace
- the function namespacename
- the function namefile
- the file to read from/function namespace:name
IOException
- if the file can't be readpublic String getFullName()
public void execute(org.bukkit.command.CommandSender sender)
sender
- the callerpublic String getNamespace()
public String getName()
public List<CommandFunction.FunctionLine> getLines()
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.