Package org.spout.vanilla.protocol.msg.player

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


    super(PlayerTimeMessage.class, 0x04);
  }

  @Override
  public PlayerTimeMessage decode(ByteBuf buffer) throws IOException {
    return new PlayerTimeMessage(buffer.readLong(), buffer.readLong());
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.player.PlayerTimeMessage

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.