Package net.glowstone.data
Class CommandFunction
java.lang.Object
net.glowstone.data.CommandFunction
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCommandFunction
(String namespace, String name, List<CommandFunction.FunctionLine> lines) -
Method Summary
-
Constructor Details
-
CommandFunction
-
-
Method Details
-
read
Reads a function from a file.- Parameters:
namespace
- the function namespacename
- the function namefile
- the file to read from- Returns:
- an instance to handle
/function namespace:name
- Throws:
IOException
- if the file can't be read
-
getFullName
-
execute
public void execute(org.bukkit.command.CommandSender sender) Calls the function.- Parameters:
sender
- the caller
-
toString
-
getNamespace
-
getName
-
getLines
-
equals
-
canEqual
-
hashCode
public int hashCode()
-