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

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


    event.getMessages().add(new ScoreboardObjectiveMessage(obj.getName(), obj.getDisplayName(), event.getAction()));
  }

  @EventHandler
  public void onObjectiveDisplay(ObjectiveDisplayEvent event) {
    event.getMessages().add(new ScoreboardDisplayMessage((byte) event.getSlot().ordinal(), event.getObjectiveName()));
  }
View Full Code Here


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

TOP

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

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.