if (block == null || world.isAirBlock(xPos, yPos, zPos)) return "AIR";
else if (block.getMaterial().isLiquid()) return "LIQUID";
else if (block.getMaterial().isSolid()) return "SOLID";
else return "UNKNOWN";
}
<BUG>private static int getBlockColorBitmask(ISensorEnvironment sensor, int xPos, int yPos, int zPos) {

World world = sensor.getWorld();
if (!world.blockExists(xPos, yPos, zPos)) return 0;
Block block = world.getBlock(xPos, yPos, zPos);</BUG>
if (block == null) {

if (block == null || world.isAirBlock(xPos, yPos, zPos)) return "AIR";
else if (block.getMaterial().isLiquid()) return "LIQUID";
else if (block.getMaterial().isSolid()) return "SOLID";
else return "UNKNOWN";
}
private static int getBlockColorBitmask(World world, Block block, int xPos, int yPos, int zPos) {
if (block == null) {
