Package org.spout.vanilla.event.scoreboard

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


   * @param value of score
   * @return this objective
   */
  public Objective setScore(String key, int value) {
    score.put(key, value);
    scoreboard.callProtocolEvent(new ScoreUpdateEvent(key, value, name, false));
    return this;
  }
View Full Code Here


   * @param key to remove entry
   * @return this objective
   */
  public Objective removeScore(String key) {
    score.remove(key);
    scoreboard.callProtocolEvent(new ScoreUpdateEvent(key, 0, name, true));
    return this;
  }
View Full Code Here

TOP

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

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.