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

Method hasSkyLayers

src/main/java/net/optifine/CustomSky.java:162–182  ·  view source on GitHub ↗
(World world)

Source from the content-addressed store, hash-verified

160 }
161
162 public static boolean hasSkyLayers(World world)
163 {
164 if (worldSkyLayers == null)
165 {
166 return false;
167 }
168 else
169 {
170 int i = world.provider.getDimensionId();
171
172 if (i >= 0 && i < worldSkyLayers.length)
173 {
174 CustomSkyLayer[] acustomskylayer = worldSkyLayers[i];
175 return acustomskylayer == null ? false : acustomskylayer.length > 0;
176 }
177 else
178 {
179 return false;
180 }
181 }
182 }
183}

Callers 1

renderSkyMethod · 0.95

Calls 1

getDimensionIdMethod · 0.45

Tested by

no test coverage detected