Move non-fluff blocks to new registreation system (yay no more registering in ctors)

This commit is contained in:
Vincent Lee committed 2017-06-24 23:47:59 -05:00
1 parent a6b37966a1
commit 901f70da88
35 files changed
+432 -437

No files matched your search

@@ -16,9 +16,13 @@ import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.registries.IForgeRegistry;
import vazkii.botania.api.BotaniaAPI;
import vazkii.botania.api.recipe.RecipeManaInfusion;
import vazkii.botania.api.subtile.SubTileEntity;
@@ -164,183 +168,294 @@ import vazkii.botania.common.block.tile.string.TileRedStringDispenser;
import vazkii.botania.common.block.tile.string.TileRedStringFertilizer;
import vazkii.botania.common.block.tile.string.TileRedStringInterceptor;
import vazkii.botania.common.block.tile.string.TileRedStringRelay;
import vazkii.botania.common.item.ItemGaiaHead;
import vazkii.botania.common.item.ModItems;
import vazkii.botania.common.item.block.ItemBlockElven;
import vazkii.botania.common.item.block.ItemBlockFloatingSpecialFlower;
import vazkii.botania.common.item.block.ItemBlockMod;
import vazkii.botania.common.item.block.ItemBlockPool;
import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
import vazkii.botania.common.item.block.ItemBlockStorage;
import vazkii.botania.common.item.block.ItemBlockTinyPotato;
import vazkii.botania.common.item.block.ItemBlockWithMetadataAndName;
import vazkii.botania.common.lib.LibBlockNames;
import vazkii.botania.common.lib.LibOreDict;
@Mod.EventBusSubscriber
public final class ModBlocks {
public static final Block flower = new BlockModFlower();
public static final Block altar = new BlockAltar();
public static final Block livingrock = new BlockLivingrock();
public static final Block livingwood = new BlockLivingwood();
public static final Block specialFlower = new BlockSpecialFlower();
public static final Block spreader = new BlockSpreader();
public static final Block pool = new BlockPool();
public static final Block runeAltar = new BlockRuneAltar();
public static final Block pylon = new BlockPylon();
public static final Block pistonRelay = new BlockPistonRelay();
public static final Block distributor = new BlockDistributor();
public static final Block manaVoid = new BlockManaVoid();
public static final Block manaDetector = new BlockManaDetector();
public static final Block enchanter = new BlockEnchanter();
public static final Block turntable = new BlockTurntable();
public static final Block tinyPlanet = new BlockTinyPlanet();
public static final Block alchemyCatalyst = new BlockAlchemyCatalyst();
public static final Block openCrate = new BlockOpenCrate();
public static final Block forestEye = new BlockForestEye();
public static final Block storage = new BlockStorage();
public static final Block forestDrum = new BlockForestDrum();
public static final Block shinyFlower = new BlockShinyFlower();
public static final Block platform = new BlockPlatform();
public static final Block alfPortal = new BlockAlfPortal();
public static final Block dreamwood = new BlockDreamwood();
public static final Block conjurationCatalyst = new BlockConjurationCatalyst();
public static final Block bifrost = new BlockBifrost();
public static final Block solidVines = new BlockSolidVines();
public static final Block buriedPetals = new BlockBuriedPetals();
public static final Block floatingFlower = new BlockFloatingFlower();
public static final Block tinyPotato = new BlockTinyPotato();
public static final Block spawnerClaw = new BlockSpawnerClaw();
public static final Block customBrick = new BlockCustomBrick();
public static final Block enderEye = new BlockEnderEye();
public static final Block starfield = new BlockStarfield();
public static final Block rfGenerator = new BlockRFGenerator();
public static final Block elfGlass = new BlockElfGlass();
public static final Block brewery = new BlockBrewery();
public static final Block manaGlass = new BlockManaGlass();
public static final Block terraPlate = new BlockTerraPlate();
public static final Block redStringContainer = new BlockRedStringContainer();
public static final Block redStringDispenser = new BlockRedStringDispenser();
public static final Block redStringFertilizer = new BlockRedStringFertilizer();
public static final Block redStringComparator = new BlockRedStringComparator();
public static final Block redStringRelay = new BlockRedStringRelay();
public static final Block floatingSpecialFlower = new BlockFloatingSpecialFlower();
public static final Block manaFlame = new BlockManaFlame();
public static final Block prism = new BlockPrism();
public static final Block enchantedSoil = new BlockEnchantedSoil();
public static final Block petalBlock = new BlockPetalBlock();
public static final Block corporeaIndex = new BlockCorporeaIndex();
public static final Block corporeaFunnel = new BlockCorporeaFunnel();
public static final Block mushroom = new BlockModMushroom();
public static final Block pump = new BlockPump();
public static final Block doubleFlower1 = new BlockModDoubleFlower1();
public static final Block doubleFlower2 = new BlockModDoubleFlower2();
public static final Block fakeAir = new BlockFakeAir();
public static final Block blazeBlock = new BlockBlaze();
public static final Block corporeaInterceptor = new BlockCorporeaInterceptor();
public static final Block corporeaCrystalCube = new BlockCorporeaCrystalCube();
public static final Block incensePlate = new BlockIncensePlate();
public static final Block hourglass = new BlockHourglass();
public static final Block ghostRail = new BlockGhostRail();
public static final Block sparkChanger = new BlockSparkChanger();
public static final Block root = new BlockRoot();
public static final Block felPumpkin = new BlockFelPumpkin();
public static final Block cocoon = new BlockCocoon();
public static final Block lightRelay = new BlockLightRelay();
public static final Block lightLauncher = new BlockLightLauncher();
public static final Block manaBomb = new BlockManaBomb();
public static final Block cacophonium = new BlockCacophonium();
public static final Block bellows = new BlockBellows();
public static final Block bifrostPerm = new BlockBifrostPerm();
public static final Block cellBlock = new BlockCell();
public static final Block redStringInterceptor = new BlockRedStringInterceptor();
public static final Block gaiaHead = new BlockGaiaHead();
public static final Block corporeaRetainer = new BlockCorporeaRetainer();
public static final Block teruTeruBozu = new BlockTeruTeruBozu();
public static final Block shimmerrock = new BlockShimmerrock();
public static final Block shimmerwoodPlanks = new BlockShimmerwoodPlanks();
public static final Block avatar = new BlockAvatar();
public static final Block altGrass = new BlockAltGrass();
public static final Block animatedTorch = new BlockAnimatedTorch();
public static Block flower;
public static Block altar;
public static Block livingrock;
public static Block livingwood;
public static Block specialFlower;
public static Block spreader;
public static Block pool;
public static Block runeAltar;
public static Block pylon;
public static Block pistonRelay;
public static Block distributor;
public static Block manaVoid;
public static Block manaDetector;
public static Block enchanter;
public static Block turntable;
public static Block tinyPlanet;
public static Block alchemyCatalyst;
public static Block openCrate;
public static Block forestEye;
public static Block storage;
public static Block forestDrum;
public static Block shinyFlower;
public static Block platform;
public static Block alfPortal;
public static Block dreamwood;
public static Block conjurationCatalyst;
public static Block bifrost;
public static Block solidVines;
public static Block buriedPetals;
public static Block floatingFlower;
public static Block tinyPotato;
public static Block spawnerClaw;
public static Block customBrick;
public static Block enderEye;
public static Block starfield;
public static Block rfGenerator;
public static Block elfGlass;
public static Block brewery;
public static Block manaGlass;
public static Block terraPlate;
public static Block redStringContainer;
public static Block redStringDispenser;
public static Block redStringFertilizer;
public static Block redStringComparator;
public static Block redStringRelay;
public static Block floatingSpecialFlower;
public static Block manaFlame;
public static Block prism;
public static Block enchantedSoil;
public static Block petalBlock;
public static Block corporeaIndex;
public static Block corporeaFunnel;
public static Block mushroom;
public static Block pump;
public static Block doubleFlower1;
public static Block doubleFlower2;
public static Block fakeAir;
public static Block blazeBlock;
public static Block corporeaInterceptor;
public static Block corporeaCrystalCube;
public static Block incensePlate;
public static Block hourglass;
public static Block ghostRail;
public static Block sparkChanger;
public static Block root;
public static Block felPumpkin;
public static Block cocoon;
public static Block lightRelay;
public static Block lightLauncher;
public static Block manaBomb;
public static Block cacophonium;
public static Block bellows;
public static Block bifrostPerm;
public static Block cellBlock;
public static Block redStringInterceptor;
public static Block gaiaHead;
public static Block corporeaRetainer;
public static Block teruTeruBozu;
public static Block shimmerrock;
public static Block shimmerwoodPlanks;
public static Block avatar;
public static Block altGrass;
public static Block animatedTorch;
@SubscribeEvent
public static void registerBlocks(RegistryEvent.Register<Block> evt) {
IForgeRegistry<Block> r = evt.getRegistry();
public static void init() {
flower = new BlockModFlower();
altar = new BlockAltar();
livingrock = new BlockLivingrock();
livingwood = new BlockLivingwood();
specialFlower = new BlockSpecialFlower();
spreader = new BlockSpreader();
pool = new BlockPool();
runeAltar = new BlockRuneAltar();
pylon = new BlockPylon();
pistonRelay = new BlockPistonRelay();
distributor = new BlockDistributor();
manaVoid = new BlockManaVoid();
manaDetector = new BlockManaDetector();
enchanter = new BlockEnchanter();
turntable = new BlockTurntable();
tinyPlanet = new BlockTinyPlanet();
alchemyCatalyst = new BlockAlchemyCatalyst();
openCrate = new BlockOpenCrate();
forestEye = new BlockForestEye();
storage = new BlockStorage();
forestDrum = new BlockForestDrum();
shinyFlower = new BlockShinyFlower();
platform = new BlockPlatform();
alfPortal = new BlockAlfPortal();
dreamwood = new BlockDreamwood();
conjurationCatalyst = new BlockConjurationCatalyst();
bifrost = new BlockBifrost();
solidVines = new BlockSolidVines();
buriedPetals = new BlockBuriedPetals();
floatingFlower = new BlockFloatingFlower();
tinyPotato = new BlockTinyPotato();
spawnerClaw = new BlockSpawnerClaw();
customBrick = new BlockCustomBrick();
enderEye = new BlockEnderEye();
starfield = new BlockStarfield();
rfGenerator = new BlockRFGenerator();
elfGlass = new BlockElfGlass();
brewery = new BlockBrewery();
manaGlass = new BlockManaGlass();
terraPlate = new BlockTerraPlate();
redStringContainer = new BlockRedStringContainer();
redStringDispenser = new BlockRedStringDispenser();
redStringFertilizer = new BlockRedStringFertilizer();
redStringComparator = new BlockRedStringComparator();
redStringRelay = new BlockRedStringRelay();
floatingSpecialFlower = new BlockFloatingSpecialFlower();
manaFlame = new BlockManaFlame();
prism = new BlockPrism();
enchantedSoil = new BlockEnchantedSoil();
petalBlock = new BlockPetalBlock();
corporeaIndex = new BlockCorporeaIndex();
corporeaFunnel = new BlockCorporeaFunnel();
mushroom = new BlockModMushroom();
pump = new BlockPump();
doubleFlower1 = new BlockModDoubleFlower1();
doubleFlower2 = new BlockModDoubleFlower2();
fakeAir = new BlockFakeAir();
blazeBlock = new BlockBlaze();
corporeaInterceptor = new BlockCorporeaInterceptor();
corporeaCrystalCube = new BlockCorporeaCrystalCube();
incensePlate = new BlockIncensePlate();
hourglass = new BlockHourglass();
ghostRail = new BlockGhostRail();
sparkChanger = new BlockSparkChanger();
root = new BlockRoot();
felPumpkin = new BlockFelPumpkin();
cocoon = new BlockCocoon();
lightRelay = new BlockLightRelay();
lightLauncher = new BlockLightLauncher();
manaBomb = new BlockManaBomb();
cacophonium = new BlockCacophonium();
bellows = new BlockBellows();
bifrostPerm = new BlockBifrostPerm();
cellBlock = new BlockCell();
redStringInterceptor = new BlockRedStringInterceptor();
gaiaHead = new BlockGaiaHead();
corporeaRetainer = new BlockCorporeaRetainer();
teruTeruBozu = new BlockTeruTeruBozu();
shimmerrock = new BlockShimmerrock();
shimmerwoodPlanks = new BlockShimmerwoodPlanks();
avatar = new BlockAvatar();
altGrass = new BlockAltGrass();
animatedTorch = new BlockAnimatedTorch();
r.register(flower);
r.register(altar);
r.register(livingrock);
r.register(livingwood);
r.register(specialFlower);
r.register(spreader);
r.register(pool);
r.register(runeAltar);
r.register(pylon);
r.register(pistonRelay);
r.register(distributor);
r.register(manaVoid);
r.register(manaDetector);
r.register(enchanter);
r.register(turntable);
r.register(tinyPlanet);
r.register(alchemyCatalyst);
r.register(openCrate);
r.register(forestEye);
r.register(storage);
r.register(forestDrum);
r.register(shinyFlower);
r.register(platform);
r.register(alfPortal);
r.register(dreamwood);
r.register(conjurationCatalyst);
r.register(bifrost);
r.register(solidVines);
r.register(buriedPetals);
r.register(floatingFlower);
r.register(tinyPotato);
r.register(spawnerClaw);
r.register(customBrick);
r.register(enderEye);
r.register(starfield);
r.register(rfGenerator);
r.register(elfGlass);
r.register(brewery);
r.register(manaGlass);
r.register(terraPlate);
r.register(redStringContainer);
r.register(redStringDispenser);
r.register(redStringFertilizer);
r.register(redStringComparator);
r.register(redStringRelay);
r.register(floatingSpecialFlower);
r.register(manaFlame);
r.register(prism);
r.register(enchantedSoil);
r.register(petalBlock);
r.register(corporeaIndex);
r.register(corporeaFunnel);
r.register(mushroom);
r.register(pump);
r.register(doubleFlower1);
r.register(doubleFlower2);
r.register(fakeAir);
r.register(blazeBlock);
r.register(corporeaInterceptor);
r.register(corporeaCrystalCube);
r.register(incensePlate);
r.register(hourglass);
r.register(ghostRail);
r.register(sparkChanger);
r.register(root);
r.register(felPumpkin);
r.register(cocoon);
r.register(lightRelay);
r.register(lightLauncher);
r.register(manaBomb);
r.register(cacophonium);
r.register(bellows);
r.register(bifrostPerm);
r.register(cellBlock);
r.register(redStringInterceptor);
r.register(gaiaHead);
r.register(corporeaRetainer);
r.register(teruTeruBozu);
r.register(shimmerrock);
r.register(shimmerwoodPlanks);
r.register(avatar);
r.register(altGrass);
r.register(animatedTorch);
ModFluffBlocks.init();
RecipeManaInfusion.alchemyState = alchemyCatalyst.getDefaultState();
RecipeManaInfusion.conjurationState = conjurationCatalyst.getDefaultState();
initOreDict();
initTileEntities();
}
@SuppressWarnings("ConstantConditions")
@SubscribeEvent
public static void registerItemBlocks(RegistryEvent.Register<Item> evt) {
//GameRegistry.register(this instanceof IElvenItem ? new ItemBlockElven(this) : new ItemBlockMod(this), getRegistryName());
IForgeRegistry<Item> r = evt.getRegistry();
r.register(new ItemBlockWithMetadataAndName(flower).setRegistryName(flower.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(altar).setRegistryName(altar.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(livingrock).setRegistryName(livingrock.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(livingwood).setRegistryName(livingwood.getRegistryName()));
r.register(new ItemBlockSpecialFlower(specialFlower).setRegistryName(specialFlower.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(spreader).setRegistryName(spreader.getRegistryName()));
r.register(new ItemBlockPool(pool).setRegistryName(pool.getRegistryName()));
r.register(new ItemBlockMod(runeAltar).setRegistryName(runeAltar.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(pylon).setRegistryName(pylon.getRegistryName()));
r.register(new ItemBlockMod(pistonRelay).setRegistryName(pistonRelay.getRegistryName()));
r.register(new ItemBlockMod(distributor).setRegistryName(distributor.getRegistryName()));
r.register(new ItemBlockMod(manaVoid).setRegistryName(manaVoid.getRegistryName()));
r.register(new ItemBlockMod(manaDetector).setRegistryName(manaDetector.getRegistryName()));
r.register(new ItemBlockMod(enchanter).setRegistryName(enchanter.getRegistryName()));
r.register(new ItemBlockMod(turntable).setRegistryName(turntable.getRegistryName()));
r.register(new ItemBlockMod(tinyPlanet).setRegistryName(tinyPlanet.getRegistryName()));
r.register(new ItemBlockMod(alchemyCatalyst).setRegistryName(alchemyCatalyst.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(openCrate).setRegistryName(openCrate.getRegistryName()));
r.register(new ItemBlockMod(forestEye).setRegistryName(forestEye.getRegistryName()));
r.register(new ItemBlockStorage(storage).setRegistryName(storage.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(forestDrum).setRegistryName(forestDrum.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(shinyFlower).setRegistryName(shinyFlower.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(platform).setRegistryName(platform.getRegistryName()));
r.register(new ItemBlockMod(alfPortal).setRegistryName(alfPortal.getRegistryName()));
r.register(new ItemBlockMod(conjurationCatalyst).setRegistryName(conjurationCatalyst.getRegistryName()));
r.register(new ItemBlockMod(bifrost).setRegistryName(bifrost.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(floatingFlower).setRegistryName(floatingFlower.getRegistryName()));
r.register(new ItemBlockTinyPotato(tinyPotato).setRegistryName(tinyPotato.getRegistryName()));
r.register(new ItemBlockMod(spawnerClaw).setRegistryName(spawnerClaw.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(customBrick).setRegistryName(customBrick.getRegistryName()));
r.register(new ItemBlockMod(enderEye).setRegistryName(enderEye.getRegistryName()));
r.register(new ItemBlockMod(starfield).setRegistryName(starfield.getRegistryName()));
r.register(new ItemBlockMod(rfGenerator).setRegistryName(rfGenerator.getRegistryName()));
r.register(new ItemBlockElven(elfGlass).setRegistryName(elfGlass.getRegistryName()));
r.register(new ItemBlockMod(brewery).setRegistryName(brewery.getRegistryName()));
r.register(new ItemBlockMod(manaGlass).setRegistryName(manaGlass.getRegistryName()));
r.register(new ItemBlockMod(terraPlate).setRegistryName(terraPlate.getRegistryName()));
r.register(new ItemBlockMod(redStringContainer).setRegistryName(redStringContainer.getRegistryName()));
r.register(new ItemBlockMod(redStringDispenser).setRegistryName(redStringDispenser.getRegistryName()));
r.register(new ItemBlockMod(redStringFertilizer).setRegistryName(redStringFertilizer.getRegistryName()));
r.register(new ItemBlockMod(redStringComparator).setRegistryName(redStringComparator.getRegistryName()));
r.register(new ItemBlockMod(redStringRelay).setRegistryName(redStringRelay.getRegistryName()));
r.register(new ItemBlockFloatingSpecialFlower(floatingSpecialFlower).setRegistryName(floatingSpecialFlower.getRegistryName()));
r.register(new ItemBlockMod(prism).setRegistryName(prism.getRegistryName()));
r.register(new ItemBlockMod(enchantedSoil).setRegistryName(enchantedSoil.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(petalBlock).setRegistryName(petalBlock.getRegistryName()));
r.register(new ItemBlockMod(corporeaIndex).setRegistryName(corporeaIndex.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(mushroom).setRegistryName(mushroom.getRegistryName()));
r.register(new ItemBlockMod(pump).setRegistryName(pump.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(doubleFlower1).setRegistryName(doubleFlower1.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(doubleFlower2).setRegistryName(doubleFlower2.getRegistryName()));
r.register(new ItemBlockMod(blazeBlock).setRegistryName(blazeBlock.getRegistryName()));
r.register(new ItemBlockMod(corporeaInterceptor).setRegistryName(corporeaInterceptor.getRegistryName()));
r.register(new ItemBlockMod(corporeaCrystalCube).setRegistryName(corporeaCrystalCube.getRegistryName()));
r.register(new ItemBlockMod(incensePlate).setRegistryName(incensePlate.getRegistryName()));
r.register(new ItemBlockMod(hourglass).setRegistryName(hourglass.getRegistryName()));
r.register(new ItemBlockMod(ghostRail).setRegistryName(ghostRail.getRegistryName()));
r.register(new ItemBlockMod(sparkChanger).setRegistryName(sparkChanger.getRegistryName()));
r.register(new ItemBlockMod(root).setRegistryName(root.getRegistryName()));
r.register(new ItemBlockMod(felPumpkin).setRegistryName(felPumpkin.getRegistryName()));
r.register(new ItemBlockMod(cocoon).setRegistryName(cocoon.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(lightRelay).setRegistryName(lightRelay.getRegistryName()));
r.register(new ItemBlockMod(lightLauncher).setRegistryName(lightLauncher.getRegistryName()));
r.register(new ItemBlockMod(manaBomb).setRegistryName(manaBomb.getRegistryName()));
r.register(new ItemBlockMod(cacophonium).setRegistryName(cacophonium.getRegistryName()));
r.register(new ItemBlockMod(bellows).setRegistryName(bellows.getRegistryName()));
r.register(new ItemBlockMod(bifrostPerm).setRegistryName(bifrostPerm.getRegistryName()));
r.register(new ItemBlockMod(cellBlock).setRegistryName(cellBlock.getRegistryName()));
r.register(new ItemBlockMod(redStringInterceptor).setRegistryName(redStringInterceptor.getRegistryName()));
r.register(new ItemGaiaHead().setRegistryName(gaiaHead.getRegistryName()));
r.register(new ItemBlockMod(corporeaRetainer).setRegistryName(corporeaRetainer.getRegistryName()));
r.register(new ItemBlockMod(teruTeruBozu).setRegistryName(teruTeruBozu.getRegistryName()));
r.register(new ItemBlockMod(shimmerrock).setRegistryName(shimmerrock.getRegistryName()));
r.register(new ItemBlockMod(shimmerwoodPlanks).setRegistryName(shimmerwoodPlanks.getRegistryName()));
r.register(new ItemBlockMod(avatar).setRegistryName(avatar.getRegistryName()));
r.register(new ItemBlockWithMetadataAndName(altGrass).setRegistryName(altGrass.getRegistryName()));
r.register(new ItemBlockMod(animatedTorch).setRegistryName(animatedTorch.getRegistryName()));
}
public static void addDispenserBehaviours() {
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.twigWand, new BehaviourWand());
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.poolMinecart, new BehaviourPoolMinecart());
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(Item.getItemFromBlock(ModBlocks.felPumpkin), new BehaviourFelPumpkin());
SeedBehaviours.init();
}
private static void initOreDict() {
for(int i = 0; i < 16; i++)
OreDictionary.registerOre(LibOreDict.FLOWER[i], new ItemStack(flower, 1, i));
@@ -363,19 +478,6 @@ public final class ModBlocks {
OreDictionary.registerOre("soulSand", Blocks.SOUL_SAND);
OreDictionary.registerOre("ice", Blocks.ICE);
OreDictionary.registerOre("slabCobblestone", new ItemStack(Blocks.STONE_SLAB, 1, 3));
RecipeManaInfusion.alchemyState = alchemyCatalyst.getDefaultState();
RecipeManaInfusion.conjurationState = conjurationCatalyst.getDefaultState();
initTileEntities();
}
public static void addDispenserBehaviours() {
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.twigWand, new BehaviourWand());
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.poolMinecart, new BehaviourPoolMinecart());
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(Item.getItemFromBlock(ModBlocks.felPumpkin), new BehaviourFelPumpkin());
SeedBehaviours.init();
}
private static void initTileEntities() {