update mappings + version bump

This commit is contained in:
dags- 2020-03-09 10:37:36 +00:00
parent c91f15e732
commit 5adfa887a4
5 changed files with 8 additions and 60 deletions

View File

@ -41,8 +41,8 @@ public class WarmBeach extends BiomeVariant {
public WarmBeach() { public WarmBeach() {
super((new Biome.Builder()).surfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.SAND_CONFIG).precipitation(Biome.RainType.RAIN).category(Category.BEACH).depth(-0.5F).scale(0.1F).temperature(1.5F).downfall(0.5F).waterColor(4445678).waterFogColor(270131).parent((String)null)); super((new Biome.Builder()).surfaceBuilder(SurfaceBuilder.DEFAULT, SurfaceBuilder.SAND_CONFIG).precipitation(Biome.RainType.RAIN).category(Category.BEACH).depth(-0.5F).scale(0.1F).temperature(1.5F).downfall(0.5F).waterColor(4445678).waterFogColor(270131).parent((String)null));
this.addStructure(Feature.MINESHAFT.func_225566_b_(new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL))); this.addStructure(Feature.MINESHAFT.withConfiguration(new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)));
this.addStructure(Feature.BURIED_TREASURE.func_225566_b_(new BuriedTreasureConfig(0.01F))); this.addStructure(Feature.BURIED_TREASURE.withConfiguration(new BuriedTreasureConfig(0.01F)));
DefaultBiomeFeatures.addCarvers(this); DefaultBiomeFeatures.addCarvers(this);
DefaultBiomeFeatures.addStructures(this); DefaultBiomeFeatures.addStructures(this);
DefaultBiomeFeatures.addMonsterRooms(this); DefaultBiomeFeatures.addMonsterRooms(this);

View File

@ -1,54 +0,0 @@
/*
*
* MIT License
*
* Copyright (c) 2020 TerraForged
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.terraforged.mod.biome.provider;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeManager;
import net.minecraft.world.biome.ColumnFuzzedBiomeMagnifier;
import net.minecraft.world.biome.provider.BiomeProvider;
public class TerraBiomeManager extends BiomeManager {
private final long seed;
private final IBiomeReader provider;
public TerraBiomeManager(IBiomeReader reader, long seed) {
super(reader, seed, ColumnFuzzedBiomeMagnifier.INSTANCE);
this.provider = reader;
this.seed = seed;
}
@Override
public BiomeManager func_226835_a_(BiomeProvider provider) {
return new TerraBiomeManager(provider, seed);
}
@Override
public Biome func_226836_a_(BlockPos pos) {
return provider.getNoiseBiome(pos.getX(), pos.getY(), pos.getZ());
}
}

View File

@ -33,6 +33,8 @@ import net.minecraft.util.math.MathHelper;
import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeContainer; import net.minecraft.world.biome.BiomeContainer;
// holds a 1:1 map of biomes in the chunk
// also holds the chunk's view on the heightmap for convenience
public class TerraContainer extends BiomeContainer { public class TerraContainer extends BiomeContainer {
private static final int BITS_WIDTH = (int) Math.round(Math.log(16.0D) / Math.log(2.0D)) - 2; private static final int BITS_WIDTH = (int) Math.round(Math.log(16.0D) / Math.log(2.0D)) - 2;

View File

@ -110,8 +110,8 @@ public class RegionDelegate extends WorldGenRegion {
} }
@Override @Override
public BiomeManager func_225523_d_() { public BiomeManager getBiomeManager() {
return region.func_225523_d_(); return region.getBiomeManager();
} }
@Override @Override

View File

@ -1,7 +1,7 @@
mod_version=0.0.2 mod_version=0.0.3
mc_version=1.15.2 mc_version=1.15.2
forge_version=31.1.1 forge_version=31.1.1
mcp_channel=snapshot mcp_channel=snapshot
mcp_version=20200124-1.15.1 mcp_version=20200225-1.15.1
org.gradle.jvmargs=-Xmx4G org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false org.gradle.daemon=false