Examples of PlayerTimeMessage


Examples of org.spout.vanilla.protocol.msg.player.PlayerTimeMessage

    }
  }

  @EventHandler
  public void onTimeUpdate(TimeUpdateEvent event) {
    event.getMessages().add(new PlayerTimeMessage(event.getWorld().getAge(), event.getNewTime()));
    event.setSendType(Session.SendType.GAME_ONLY);
  }
View Full Code Here

Examples of org.spout.vanilla.protocol.msg.player.PlayerTimeMessage

    super(PlayerTimeMessage.class, 0x04);
  }

  @Override
  public PlayerTimeMessage decode(ByteBuf buffer) throws IOException {
    return new PlayerTimeMessage(buffer.readLong(), buffer.readLong());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.