Class CommandFunction.FunctionLine

java.lang.Object
net.glowstone.data.CommandFunction.FunctionLine
Enclosing class:
CommandFunction

public static class CommandFunction.FunctionLine extends Object
  • Constructor Details

    • FunctionLine

      public FunctionLine(boolean comment, String content)
  • Method Details

    • read

      public static CommandFunction.FunctionLine read(String line)
      Converts a line of code to a FunctionLine.
      Parameters:
      line - a line from a function file
      Returns:
      the line as a FunctionLine
    • execute

      public void execute(org.bukkit.command.CommandSender sender)
      Executes the command on this line.
      Parameters:
      sender - the function caller
    • toString

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

      public boolean isComment()
    • getContent

      public String getContent()
    • 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