@Nonnull @Override public Biome getBiomeForCoords(@Nonnull BlockPos pos) { return biomeProvider.getBiome(pos); }
public Start(BiomeProvider chunkManagerIn, int p_i2104_2_, Random rand, int p_i2104_4_, int p_i2104_5_, List<PixieVillagePieces.PieceWeight> p_i2104_6_, int p_i2104_7_) { super((Start) null, 0, rand, p_i2104_4_, p_i2104_5_); this.worldChunkMngr = chunkManagerIn; this.structureVillageWeightedPieceList = p_i2104_6_; this.terrainType = p_i2104_7_; Biome biome = chunkManagerIn.getBiome(new BlockPos(p_i2104_4_, 0, p_i2104_5_), Biomes.DEFAULT); this.biome = biome; this.startPiece = this; this.func_189924_a(this.field_189928_h); this.field_189929_i = rand.nextInt(50) == 0; } }
public Start(BiomeProvider chunkManagerIn, int p_i2104_2_, Random rand, int p_i2104_4_, int p_i2104_5_, List<SnowVillagePieces.PieceWeight> p_i2104_6_, int p_i2104_7_) { super((Start) null, 0, rand, p_i2104_4_, p_i2104_5_); this.worldChunkMngr = chunkManagerIn; this.structureVillageWeightedPieceList = p_i2104_6_; this.terrainType = p_i2104_7_; Biome biome = chunkManagerIn.getBiome(new BlockPos(p_i2104_4_, 0, p_i2104_5_), Biomes.DEFAULT); this.biome = biome; this.startPiece = this; this.func_189924_a(this.field_189928_h); this.field_189929_i = rand.nextInt(50) == 0; } }
@Override public int getBiome(int x, int z) { return Biome.getIdForBiome(this.worldChunkManager.getBiome(new BlockPos(x, 0, z))); }
Biome biomeAtPosition = this.world.getBiomeProvider().getBiome( new BlockPos(var3 * 16 + 8, 0, var4 * 16 + 8));
if (biomeProvider.getBiome(new BlockPos(k * 16 + 8, 64, l * 16 + 8), (Biome) null) != Biomes.DEEP_OCEAN)
public CachedGridEntry(World world, int gridX, int gridZ) { this.gridX = gridX; this.gridZ = gridZ; long gridRandomSeed = Objects.hash(gridX, gridZ) ^ world.getSeed(); this.gridRandom = new XSTR(gridRandomSeed); int gridSizeX = WorldGeneratorImpl.GRID_SIZE_X * 16; int gridSizeZ = WorldGeneratorImpl.GRID_SIZE_Z * 16; BlockPos blockPos = new BlockPos(gridX * gridSizeX + gridSizeX / 2, world.getActualHeight(), gridZ * gridSizeZ + gridSizeZ / 2); Biome currentBiome = world.getBiomeProvider().getBiome(blockPos); this.cachedDepositMap = new ArrayList<>(WorldGenRegistry.INSTANCE.getCachedBiomeVeins(world.provider, currentBiome)); this.maxHeight = world.getActualHeight(); this.generatedVeins = triggerVeinsGeneration(); }
@Override public Biome getBiome(BlockPos pos) { LostCityProfile profile = WorldTypeTools.getProfile(world); Biome originalBiome = original.getBiome(pos); if (!(world instanceof WorldServer)) { return originalBiome; } if (profile.isSpace() && profile.CITYSPHERE_LANDSCAPE_OUTSIDE) { int chunkX = (pos.getX()) >> 4; int chunkZ = (pos.getZ()) >> 4; CitySphere sphere = CitySphere.getCitySphere(chunkX, chunkZ, getProvider()); if (sphere.isEnabled()) { float radius = sphere.getRadius(); BlockPos cc = sphere.getCenterPos(); double sqradiusOffset = (radius - 2) * (radius - 2); int cx = cc.getX(); int cz = cc.getZ(); if (CitySphere.squaredDistance(cx, cz, pos.getX(), pos.getZ()) > sqradiusOffset) { return outsideTranslator.translate(originalBiome); } else if (sphere.getBiome() != null) { return sphere.getBiome(); } } else { return outsideTranslator.translate(originalBiome); } } return biomeTranslator.translate(originalBiome); }