(World world, float torchFlickerX, int[] lmColors, boolean nightvision, float partialTicks)
| 1288 | } |
| 1289 | |
| 1290 | public static boolean updateLightmap(World world, float torchFlickerX, int[] lmColors, boolean nightvision, float partialTicks) |
| 1291 | { |
| 1292 | if (world == null) |
| 1293 | { |
| 1294 | return false; |
| 1295 | } |
| 1296 | else if (lightMapPacks == null) |
| 1297 | { |
| 1298 | return false; |
| 1299 | } |
| 1300 | else |
| 1301 | { |
| 1302 | int i = world.provider.getDimensionId(); |
| 1303 | int j = i - lightmapMinDimensionId; |
| 1304 | |
| 1305 | if (j >= 0 && j < lightMapPacks.length) |
| 1306 | { |
| 1307 | LightMapPack lightmappack = lightMapPacks[j]; |
| 1308 | return lightmappack == null ? false : lightmappack.updateLightmap(world, torchFlickerX, lmColors, nightvision, partialTicks); |
| 1309 | } |
| 1310 | else |
| 1311 | { |
| 1312 | return false; |
| 1313 | } |
| 1314 | } |
| 1315 | } |
| 1316 | |
| 1317 | public static Vec3 getWorldFogColor(Vec3 fogVec, World world, Entity renderViewEntity, float partialTicks) |
| 1318 | { |
no test coverage detected