<commit_before>package dmillerw.time.world;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;

/**
 * @author dmillerw
 */
public class WorldProviderOverworldBOP extends WorldProviderOverworld {

    @Override
    public boolean canCoordinateBeSpawn(int x, int z) {
        int y = getTopBlockCoord(this.worldObj, x, z);
        Block topBlock = this.worldObj.getBlock(x, y, z);
        boolean flag = topBlock == Blocks.sand || topBlock == Blocks.stone || topBlock == Blocks.snow_layer && this.worldChunkMgr.getBiomesToSpawnIn().contains(this.worldObj.getBiomeGenForCoordsBody(x, z));
        boolean isClear = true;

        for (int ix = -1; ix <= 1; ix++) {
            for (int iy = -2; iy <= 2; iy++) {
                for (int iz = -1; iz <= 1; iz++) {
                    if (this.worldObj.getBlock(x, y, z).getMaterial() == Material.water) {
                        isClear = false;
                        break;
                    }
                }<commit_msg>Quick documentation<commit_after>package dmillerw.time.world;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;

/**
 * Borrowed from the Biomes O' Plenty GitHub repo, and placed on top of my provider code
 * Should allow for both mods to work well together (crosses fingers)
 * @author dmillerw
 */
public class WorldProviderOverworldBOP extends WorldProviderOverworld {

    @Override
    public boolean canCoordinateBeSpawn(int x, int z) {
        int y = getTopBlockCoord(this.worldObj, x, z);
        Block topBlock = this.worldObj.getBlock(x, y, z);
        boolean flag = topBlock == Blocks.sand || topBlock == Blocks.stone || topBlock == Blocks.snow_layer && this.worldChunkMgr.getBiomesToSpawnIn().contains(this.worldObj.getBiomeGenForCoordsBody(x, z));
        boolean isClear = true;

        for (int ix = -1; ix <= 1; ix++) {
            for (int iy = -2; iy <= 2; iy++) {
                for (int iz = -1; iz <= 1; iz++) {
                    if (this.worldObj.getBlock(x, y, z).getMaterial() == Material.water) {
                        isClear = false;
                        break;
                    }
                }
{'fraction_non_alphanumeric': 0.1194288186932064, 'fraction_numerical': 0.005192557334487235, 'mean_word_length': 2.38506588579795, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '137993', 'n_tokens_mistral': 720, 'n_tokens_neox': 695, 'n_words': 180}