MCPcopy Create free account
hub / github.com/cabaletta/baritone / getBlock

Method getBlock

src/main/java/baritone/cache/CachedRegion.java:78–86  ·  view source on GitHub ↗
(int x, int y, int z)

Source from the content-addressed store, hash-verified

76 }
77
78 @Override
79 public final BlockState getBlock(int x, int y, int z) {
80 int adjY = y - dimension.minY();
81 CachedChunk chunk = chunks[x >> 4][z >> 4];
82 if (chunk != null) {
83 return chunk.getBlock(x & 15, adjY, z & 15, dimension);
84 }
85 return null;
86 }
87
88 @Override
89 public final boolean isCached(int x, int z) {

Callers 1

get0Method · 0.95

Calls 1

getBlockMethod · 0.95

Tested by

no test coverage detected