Fixed a crash when the game is obfuscated

This commit is contained in:
Adubbz 2016-04-24 09:09:59 +10:00
parent 1ddfc8a36e
commit 9a57f08ca3
21 changed files with 23 additions and 20 deletions

View File

@ -3,7 +3,7 @@ package biomesoplenty.api.enums;
import java.util.ArrayList;
import java.util.Iterator;
import biomesoplenty.api.generation.IBOPGenLayer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.BiomeManager.BiomeType;
@ -46,7 +46,7 @@ public enum BOPClimates {
return this;
}
public BiomeGenBase getRandomLandBiome(IBOPGenLayer layer)
public BiomeGenBase getRandomLandBiome(BOPGenLayer layer)
{
int weight = layer.nextInt(this.totalLandBiomesWeight);
Iterator<WeightedBiomeEntry> iterator = this.landBiomes.iterator();
@ -60,7 +60,7 @@ public enum BOPClimates {
return item.biome;
}
public BiomeGenBase getRandomOceanBiome(IBOPGenLayer layer, boolean deep)
public BiomeGenBase getRandomOceanBiome(BOPGenLayer layer, boolean deep)
{
switch (this)
{

View File

@ -6,13 +6,11 @@
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.IBOPGenLayer;
package biomesoplenty.api.generation;
import net.minecraft.world.gen.layer.GenLayer;
public abstract class BOPGenLayer extends GenLayer implements IBOPGenLayer
public abstract class BOPGenLayer extends GenLayer
{
public BOPGenLayer(long seed) {
super(seed);
}

View File

@ -1,13 +0,0 @@
/*******************************************************************************
* Copyright 2016, the Biomes O' Plenty Team
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
*
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.api.generation;
public interface IBOPGenLayer
{
int nextInt(int a);
}

View File

@ -7,6 +7,7 @@
******************************************************************************/
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class GenLayerAllSame extends BOPGenLayer

View File

@ -7,6 +7,7 @@
******************************************************************************/
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -1,5 +1,6 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.layer.GenLayer;

View File

@ -9,6 +9,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.init.ModBiomes;
import biomesoplenty.common.world.BOPWorldSettings;
import net.minecraft.init.Biomes;

View File

@ -11,6 +11,7 @@ package biomesoplenty.common.world.layer;
import com.google.common.base.Optional;
import biomesoplenty.api.biome.BOPBiomes;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.layer.GenLayer;

View File

@ -9,6 +9,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.layer.GenLayer;

View File

@ -1,6 +1,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.enums.BOPClimates;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -7,6 +7,7 @@
******************************************************************************/
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -10,6 +10,7 @@ package biomesoplenty.common.world.layer;
import java.util.Iterator;
import java.util.Map.Entry;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.init.ModBiomes;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -7,6 +7,7 @@
******************************************************************************/
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -1,5 +1,6 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.world.SimplexNoise;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -8,6 +8,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class GenLayerRainfallRandom extends BOPGenLayer

View File

@ -9,6 +9,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.biome.BOPBiomes;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.biome.overworld.BOPBiome;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;

View File

@ -11,6 +11,7 @@ import com.google.common.base.Predicate;
import biomesoplenty.api.biome.BOPBiomes;
import biomesoplenty.api.biome.IExtendedBiome;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.util.biome.BiomeUtils;
import net.minecraft.init.Biomes;
import net.minecraft.world.biome.BiomeGenBase;

View File

@ -10,6 +10,7 @@ package biomesoplenty.common.world.layer;
import java.util.List;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.init.ModBiomes;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.layer.GenLayer;

View File

@ -8,6 +8,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -1,5 +1,6 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import biomesoplenty.common.world.SimplexNoise;
import net.minecraft.world.gen.layer.IntCache;

View File

@ -8,6 +8,7 @@
package biomesoplenty.common.world.layer;
import biomesoplenty.api.generation.BOPGenLayer;
import net.minecraft.world.gen.layer.IntCache;
public class GenLayerTemperatureRandom extends BOPGenLayer