Examples of canBlockSeeTheSky()


Examples of net.minecraft.world.World.canBlockSeeTheSky()

    setValue("y-2", MAtmosUtility.getNameAt(x, y - 2, z, MODULE_CONSTANTS.NO_BLOCK_OUT_OF_BOUNDS));
    setValue("y0", MAtmosUtility.getNameAt(x, y + 0, z, MODULE_CONSTANTS.NO_BLOCK_OUT_OF_BOUNDS));
    setValue("y1", MAtmosUtility.getNameAt(x, y + 1, z, MODULE_CONSTANTS.NO_BLOCK_OUT_OF_BOUNDS));
    setValue("topmost_block", w.getTopSolidOrLiquidBlock(x, z));
    setValue("thickness_overhead", w.getTopSolidOrLiquidBlock(x, z) - y);
    setValue("can_rain_reach", w.canBlockSeeTheSky(x, y, z) && !(w.getTopSolidOrLiquidBlock(x, z) > y));
  }
}
View Full Code Here

Examples of net.minecraft.world.World.canBlockSeeTheSky()

    int z = MAtmosUtility.getPlayerZ();
   
    setValue("sky", w.getSavedLightValue(EnumSkyBlock.Sky, x, y, z));
    setValue("lamp", w.getSavedLightValue(EnumSkyBlock.Block, x, y, z));
    setValue("final", w.getBlockLightValue(x, y, z));
    setValue("see_sky", w.canBlockSeeTheSky(x, y, z));
  }
}
View Full Code Here

Examples of net.minecraft.world.World.canBlockSeeTheSky()

    // / No sky, except if in hell
    BiomeGenBase biome = BiomeGenBase.getBiome(housing.getBiomeId());
    if(biome == null)
      return EnumErrorCode.NOSKY.ordinal();
    if (!BiomeDictionary.isBiomeOfType(biome, BiomeDictionary.Type.NETHER) && !world.canBlockSeeTheSky(housing.getXCoord(), housing.getYCoord() + 3, housing.getZCoord())
        && !genome.getCaveDwelling() && !housing.isSunlightSimulated())
      return EnumErrorCode.NOSKY.ordinal();

    // / And finally climate check
    if (!checkSuitableClimate(housing.getTemperature(), housing.getHumidity()))
View Full Code Here

Examples of net.minecraft.world.World.canBlockSeeTheSky()

        int y = worldObj.getHeightValue((int)player.posX, (int)player.posZ);
        PathEntity path = worldObj.getEntityPathToXYZ(player, (int)player.posX, y, (int)player.posZ, 300, true, true, false, true);
        if(path != null) {
            for(int i = 0; i < path.getCurrentPathLength(); i++) {
                PathPoint pathPoint = path.getPathPointFromIndex(i);
                if(worldObj.canBlockSeeTheSky(pathPoint.xCoord, pathPoint.yCoord, pathPoint.zCoord)) {
                    coordTracker = new RenderCoordWireframe(worldObj, pathPoint.xCoord, pathPoint.yCoord, pathPoint.zCoord);
                    navigator = new RenderNavigator(worldObj, pathPoint.xCoord, pathPoint.yCoord, pathPoint.zCoord);
                    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.