Class CommandFunction

java.lang.Object
net.glowstone.data.CommandFunction

public class CommandFunction extends Object
  • Constructor Details

  • Method Details

    • read

      public static CommandFunction read(String namespace, String name, File file) throws IOException
      Reads a function from a file.
      Parameters:
      namespace - the function namespace
      name - the function name
      file - the file to read from
      Returns:
      an instance to handle /function namespace:name
      Throws:
      IOException - if the file can't be read
    • getFullName

      public String getFullName()
    • execute

      public void execute(org.bukkit.command.CommandSender sender)
      Calls the function.
      Parameters:
      sender - the caller
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getNamespace

      public String getNamespace()
    • getName

      public String getName()
    • getLines

      public List<CommandFunction.FunctionLine> getLines()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object