mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-27 23:33:00 +00:00
Cleanup
This commit is contained in:
1 parent
defbdc8e71
commit
550462221c
2 files changed
+9
-11
No files matched your search
@@ -10,15 +10,18 @@
|
||||
******************************************************************************/
|
||||
package forestry.core;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
||||
import cpw.mods.fml.common.IWorldGenerator;
|
||||
|
||||
import forestry.core.config.Config;
|
||||
import forestry.core.config.ForestryBlock;
|
||||
import forestry.core.proxy.Proxies;
|
||||
import forestry.core.worldgen.WorldGenMinableMeta;
|
||||
import forestry.plugins.PluginManager;
|
||||
import java.util.Random;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.IChunkProvider;
|
||||
|
||||
public class WorldGenerator implements IWorldGenerator {
|
||||
|
||||
@@ -30,7 +33,7 @@ public class WorldGenerator implements IWorldGenerator {
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
|
||||
|
||||
if (apatiteGenerator == null) {
|
||||
apatiteGenerator = new WorldGenMinableMeta(ForestryBlock.resources.block(), 0, 36);
|
||||
apatiteGenerator = new WorldGenMinableMeta(ForestryBlock.resources, 0, 36);
|
||||
copperGenerator = new WorldGenMinableMeta(ForestryBlock.resources, 1, 6);
|
||||
tinGenerator = new WorldGenMinableMeta(ForestryBlock.resources, 2, 6);
|
||||
}
|
||||
|
||||
@@ -112,19 +112,14 @@ public class PluginCore extends ForestryPlugin {
|
||||
ForestryBlock.soil.block().setHarvestLevel("shovel", 0, 1);
|
||||
|
||||
ForestryBlock.resources.registerBlock(new BlockResource(), ItemForestryBlock.class, "resources");
|
||||
ForestryBlock.resources.block().setHarvestLevel("pickaxe", 1, 0);
|
||||
ForestryBlock.resources.block().setHarvestLevel("pickaxe", 1, 1);
|
||||
ForestryBlock.resources.block().setHarvestLevel("pickaxe", 1, 2);
|
||||
ForestryBlock.resources.block().setHarvestLevel("pickaxe", 1);
|
||||
|
||||
OreDictionary.registerOre("oreApatite", ForestryBlock.resources.getItemStack(1, 0));
|
||||
OreDictionary.registerOre("oreCopper", ForestryBlock.resources.getItemStack(1, 1));
|
||||
OreDictionary.registerOre("oreTin", ForestryBlock.resources.getItemStack(1, 2));
|
||||
|
||||
ForestryBlock.resourceStorage.registerBlock(new BlockResourceStorageBlock(), ItemForestryBlock.class, "resourceStorage");
|
||||
ForestryBlock.resourceStorage.block().setHarvestLevel("pickaxe", 0, 0);
|
||||
ForestryBlock.resourceStorage.block().setHarvestLevel("pickaxe", 0, 1);
|
||||
ForestryBlock.resourceStorage.block().setHarvestLevel("pickaxe", 0, 2);
|
||||
ForestryBlock.resourceStorage.block().setHarvestLevel("pickaxe", 0, 3);
|
||||
ForestryBlock.resourceStorage.block().setHarvestLevel("pickaxe", 0);
|
||||
|
||||
OreDictionary.registerOre("blockApatite", ForestryBlock.resourceStorage.getItemStack(1, 0));
|
||||
OreDictionary.registerOre("blockCopper", ForestryBlock.resourceStorage.getItemStack(1, 1));
|
||||
|
||||
Reference in new issue
Block a user