use of net.glowstone.net.message.play.game.TimeMessage in project Glowstone by GlowstoneMC.
the class GlowPlayer method sendTime.
/**
* Sends a {@link TimeMessage} with the time of day.
*/
public void sendTime() {
long time = getPlayerTime();
if (!playerTimeRelative || !world.getGameRuleMap().getBoolean(GameRules.DO_DAYLIGHT_CYCLE)) {
// negative value indicates fixed time
time *= -1;
}
session.send(new TimeMessage(world.getFullTime(), time));
}
Aggregations