10051006100710081009101010111012
} } @EventHandler public void onTimeUpdate(TimeUpdateEvent event) { event.getMessages().add(new PlayerTimeMessage(event.getWorld().getAge(), event.getNewTime())); event.setSendType(Session.SendType.GAME_ONLY); }
40414243444546
super(PlayerTimeMessage.class, 0x04); } @Override public PlayerTimeMessage decode(ByteBuf buffer) throws IOException { return new PlayerTimeMessage(buffer.readLong(), buffer.readLong()); }