Package org.spout.vanilla.event.scoreboard

Examples of org.spout.vanilla.event.scoreboard.ObjectiveActionEvent


   * @param displayName to set
   * @return this objective
   */
  public Objective setDisplayName(String displayName) {
    this.displayName = displayName;
    scoreboard.callProtocolEvent(new ObjectiveActionEvent(this, ScoreboardObjectiveMessage.ACTION_UPDATE));
    return this;
  }
View Full Code Here


   * @return newly created objective
   */
  public Objective createObjective(String name) {
    Objective obj = new Objective(this, name);
    objectives.add(obj);
    callProtocolEvent(new ObjectiveActionEvent(obj, ScoreboardObjectiveMessage.ACTION_CREATE));
    return obj;
  }
View Full Code Here

    Objective obj = getObjective(name);
    if (obj == null) {
      throw new IllegalArgumentException("Specified objective name does not exist on this scoreboard.");
    }
    objectives.remove(obj);
    callProtocolEvent(new ObjectiveActionEvent(obj, ScoreboardObjectiveMessage.ACTION_REMOVE));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.scoreboard.ObjectiveActionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.