Fixed a crash when the game is obfuscated
This commit is contained in:
parent
1ddfc8a36e
commit
9a57f08ca3
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue