MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / updateLightmap

Method updateLightmap

src/main/java/net/optifine/CustomColors.java:1290–1315  ·  view source on GitHub ↗
(World world, float torchFlickerX, int[] lmColors, boolean nightvision, float partialTicks)

Source from the content-addressed store, hash-verified

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 {

Callers 1

updateLightmapMethod · 0.95

Calls 2

updateLightmapMethod · 0.95
getDimensionIdMethod · 0.45

Tested by

no test coverage detected