Package org.spout.vanilla.event.world

Examples of org.spout.vanilla.event.world.TimeUpdateEvent


      celestial = (float) ((double) celestial * (1.0d - (double) (weather.getRainStrength(timeFactor) * 5f) / 16d));
      celestial = (float) ((double) celestial * (1.0d - (double) (weather.getThunderStrength(timeFactor) * 5f) / 16d));
    }
    getOwner().setSkyLight((byte) (celestial * (float) SKY_LIGHT_RANGE + MIN_SKY_LIGHT));

    TimeUpdateEvent event = new TimeUpdateEvent(getOwner(), time);
    for (Player player : getOwner().getPlayers()) {
      player.getNetwork().callProtocolEvent(event, player);
    }
  }
View Full Code Here


    }
  }

  @Override
  public void updatePlayer(Player player) {
    TimeUpdateEvent event = new TimeUpdateEvent(getOwner(), getTime());
    player.getNetwork().callProtocolEvent(event, player);
    if (Weather.CLEAR != getWeather()) {
      WeatherChangeEvent weatherEvent = new WeatherChangeEvent(getOwner(), Weather.CLEAR, getWeather());
      player.getNetwork().callProtocolEvent(weatherEvent, player);
    }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.event.world.TimeUpdateEvent

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.