Examples of Sky


Examples of org.spout.vanilla.component.world.sky.Sky

   *
   * @param block to check it nearby of
   * @return True if it is raining, False if not
   */
  public static boolean hasRainNearby(Block block) {
    Sky sky = block.getWorld().get(Sky.class);
    if (sky != null && sky.hasWeather()) {
      if (sky.getWeatherSimulator().isRainingAt(block.getX(), block.getY(), block.getZ(), false)) {
        for (BlockFace face : BlockFaces.NESW) {
          if (block.translate(face).isAtSurface()) {
            return true;
          }
        }
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.