MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getChunk

Method getChunk

common/buildcraft/lib/misc/ChunkUtil.java:10–12  ·  view source on GitHub ↗
(World world, ChunkPos pos)

Source from the content-addressed store, hash-verified

8 private static final ThreadLocal<Chunk> lastChunk = new ThreadLocal<>();
9
10 public static Chunk getChunk(World world, ChunkPos pos) {
11 return getChunk(world, pos.chunkXPos, pos.chunkZPos);
12 }
13
14 public static Chunk getChunk(World world, int x, int z) {
15 Chunk chunk = lastChunk.get();

Callers 2

getTileEntityMethod · 0.95
getBlockStateMethod · 0.95

Calls 5

isLoadedMethod · 0.80
getLoadedChunkMethod · 0.80
getMethod · 0.65
getWorldMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected