import net.minecraft.world.BlockView;
import net.minecraft.world.LightType;
import net.minecraft.world.World;
-import net.minecraft.world.biome.SpawnSettings;
import net.minecraft.world.chunk.ChunkStatus;
import net.minecraft.world.chunk.WorldChunk;
import net.minecraft.world.chunk.light.ChunkLightingView;
map.put(blockPos.asLong(), Integer.valueOf(level));
}
} else {
- SpawnSettings spawnSettings = world.getBiomeAccess().getBiome(blockPos).getSpawnSettings();
- if (spawnSettings.getCreatureSpawnProbability() > 0 && !spawnSettings.getSpawnEntry(EntityCategory.MONSTER).isEmpty()) {
- CrossType type = getCrossType(blockPos, downPos, world, block, sky, entityContext);
- if (type != CrossType.NONE) {
- map.put(blockPos.asLong(), type);
- }
+ CrossType type = getCrossType(blockPos, downPos, world, block, sky, entityContext);
+ if (type != CrossType.NONE) {
+ map.put(blockPos.asLong(), type);
}
}
}
map.put(pos.asLong(), Integer.valueOf(level));
}
} else {
- SpawnSettings spawnSettings = world.getBiomeAccess().getBiome(pos).getSpawnSettings();
- if (spawnSettings.getCreatureSpawnProbability() > 0 && !spawnSettings.getSpawnEntry(EntityCategory.MONSTER).isEmpty()) {
- CrossType type = LightOverlay.getCrossType(pos, down, chunk, block, sky, entityContext);
- if (type != CrossType.NONE) {
- map.put(pos.asLong(), type);
- }
+ CrossType type = LightOverlay.getCrossType(pos, down, chunk, block, sky, entityContext);
+ if (type != CrossType.NONE) {
+ map.put(pos.asLong(), type);
}
}
}