mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-16 02:04:56 +00:00
Update buildscript & spotlessApply
This commit is contained in:
1 parent
e4329e2b8f
commit
8683a345c3
818 files changed
+51123
-49403
No files matched your search
@@ -8,76 +8,87 @@ import buildcraft.api.core.BuildCraftAPI;
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import forestry.apiculture.genetics.BeeDefinition;
|
||||
import java.util.Random;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
public class ModuleGeneration implements IWorldGenerator, IInitializable {
|
||||
protected static int waterRate = 2;
|
||||
protected static int rockRate = 2;
|
||||
protected static int netherRate = 2;
|
||||
protected static int marbleRate = 2;
|
||||
protected static int waterRate = 2;
|
||||
protected static int rockRate = 2;
|
||||
protected static int netherRate = 2;
|
||||
protected static int marbleRate = 2;
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
ExtraBees.materialBeehive = new MaterialBeehive();
|
||||
ExtraBees.hive = new BlockExtraBeeHive();
|
||||
GameRegistry.registerBlock(ExtraBees.hive, ItemBeehive.class, "hive");
|
||||
}
|
||||
@Override
|
||||
public void preInit() {
|
||||
ExtraBees.materialBeehive = new MaterialBeehive();
|
||||
ExtraBees.hive = new BlockExtraBeeHive();
|
||||
GameRegistry.registerBlock(ExtraBees.hive, ItemBeehive.class, "hive");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
ModuleGeneration.waterRate = ConfigurationMain.waterHiveRate;
|
||||
ModuleGeneration.rockRate = ConfigurationMain.rockHiveRate;
|
||||
ModuleGeneration.netherRate = ConfigurationMain.netherHiveRate;
|
||||
GameRegistry.registerWorldGenerator(new ModuleGeneration(), 0);
|
||||
if (!ConfigurationMain.canQuarryMineHives) {
|
||||
BuildCraftAPI.softBlocks.add(ExtraBees.hive);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void init() {
|
||||
ModuleGeneration.waterRate = ConfigurationMain.waterHiveRate;
|
||||
ModuleGeneration.rockRate = ConfigurationMain.rockHiveRate;
|
||||
ModuleGeneration.netherRate = ConfigurationMain.netherHiveRate;
|
||||
GameRegistry.registerWorldGenerator(new ModuleGeneration(), 0);
|
||||
if (!ConfigurationMain.canQuarryMineHives) {
|
||||
BuildCraftAPI.softBlocks.add(ExtraBees.hive);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postInit() {
|
||||
EnumHiveType.WATER.drops.add(new HiveDrop(ExtraBeeDefinition.WATER.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.WATER.drops.add(new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
@Override
|
||||
public void postInit() {
|
||||
EnumHiveType.WATER.drops.add(
|
||||
new HiveDrop(ExtraBeeDefinition.WATER.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.WATER.drops.add(
|
||||
new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
|
||||
EnumHiveType.ROCK.drops.add(new HiveDrop(ExtraBeeDefinition.ROCK.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.ROCK.drops.add(new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
EnumHiveType.ROCK.drops.add(
|
||||
new HiveDrop(ExtraBeeDefinition.ROCK.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.ROCK.drops.add(
|
||||
new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
|
||||
EnumHiveType.NETHER.drops.add(new HiveDrop(ExtraBeeDefinition.BASALT.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.NETHER.drops.add(new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
EnumHiveType.NETHER.drops.add(
|
||||
new HiveDrop(ExtraBeeDefinition.BASALT.getGenome().getPrimary(), 80));
|
||||
EnumHiveType.NETHER.drops.add(
|
||||
new HiveDrop(BeeDefinition.VALIANT.getGenome().getPrimary(), 3));
|
||||
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 0);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 1);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 2);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 3);
|
||||
}
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 0);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 1);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 2);
|
||||
ExtraBees.hive.setHarvestLevel("scoop", 0, 3);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(Random rand, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
||||
chunkX <<= 4;
|
||||
chunkZ <<= 4;
|
||||
@Override
|
||||
public void generate(
|
||||
Random rand,
|
||||
int chunkX,
|
||||
int chunkZ,
|
||||
World world,
|
||||
IChunkProvider chunkGenerator,
|
||||
IChunkProvider chunkProvider) {
|
||||
chunkX <<= 4;
|
||||
chunkZ <<= 4;
|
||||
|
||||
for (int i = 0; i < ModuleGeneration.waterRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveWater().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
for (int i = 0; i < ModuleGeneration.waterRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveWater().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int i = 0; i < ModuleGeneration.rockRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveRock().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
for (int i = 0; i < ModuleGeneration.rockRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveRock().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
|
||||
for (int i = 0; i < ModuleGeneration.netherRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveNether().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < ModuleGeneration.netherRate; ++i) {
|
||||
int randPosX = chunkX + rand.nextInt(16);
|
||||
int randPosY = rand.nextInt(50) + 20;
|
||||
int randPosZ = chunkZ + rand.nextInt(16);
|
||||
new WorldGenHiveNether().generate(world, rand, randPosX, randPosY, randPosZ);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user