Package org.spout.vanilla.protocol.msg.scoreboard

Examples of org.spout.vanilla.protocol.msg.scoreboard.ScoreboardObjectiveMessage


  }

  @EventHandler
  public void onObjectiveAction(ObjectiveActionEvent event) {
    Objective obj = event.getObjective();
    event.getMessages().add(new ScoreboardObjectiveMessage(obj.getName(), obj.getDisplayName(), event.getAction()));
  }
View Full Code Here


  @Override
  public ScoreboardObjectiveMessage decode(ByteBuf buffer) throws IOException {
    String name = VanillaByteBufUtils.readString(buffer);
    String display = VanillaByteBufUtils.readString(buffer);
    byte action = buffer.readByte();
    return new ScoreboardObjectiveMessage(name, display, action);
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.scoreboard.ScoreboardObjectiveMessage

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.