use of com.github.hhhzzzsss.hbot.block.ChunkColumn in project HBot-Release by hhhzzzsss.
the class CommandCore method checkCore.
private boolean checkCore(ChunkPos pos) {
ChunkColumn chunkColumn = world.getChunk(pos);
if (chunkColumn == null)
return false;
ChunkSection section = chunkColumn.getChunks()[0];
if (section == null)
return false;
BitStorage storage = section.getChunkData().getStorage();
Palette palette = section.getChunkData().getPalette();
for (int i = 0; i < 256 * targetCoreHeight; i++) {
if (!isCommandBlock(palette.idToState(storage.get(i)))) {
return false;
}
}
return true;
}
Aggregations