Rewrite is Go!
Just moving over all my changes from my fork
This commit is contained in:
parent
8bdd1f8b8f
commit
e3d4afa123
973 changed files with 3313 additions and 82171 deletions
|
@ -0,0 +1,56 @@
|
|||
package WayofTime.alchemicalWizardry.registry;
|
||||
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.ConfigHandler;
|
||||
import WayofTime.alchemicalWizardry.block.BlockAltar;
|
||||
import WayofTime.alchemicalWizardry.block.BlockLifeEssence;
|
||||
import WayofTime.alchemicalWizardry.util.helper.InventoryRenderHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
public class ModBlocks {
|
||||
|
||||
public static Block altar;
|
||||
|
||||
public static Block lifeEssence;
|
||||
|
||||
public static Block crystal;
|
||||
public static Block rune;
|
||||
public static Block bloodStone;
|
||||
|
||||
public static void init() {
|
||||
FluidRegistry.registerFluid(BlockLifeEssence.getLifeEssence());
|
||||
lifeEssence = registerBlock(new BlockLifeEssence());
|
||||
altar = registerBlock(new BlockAltar());
|
||||
|
||||
initTiles();
|
||||
}
|
||||
|
||||
public static void initTiles() {
|
||||
|
||||
}
|
||||
|
||||
public static void initRenders() {
|
||||
InventoryRenderHelper renderHelper = AlchemicalWizardry.instance.getRenderHelper();
|
||||
}
|
||||
|
||||
private static Block registerBlock(Block block, Class<? extends ItemBlock> itemBlock, String name) {
|
||||
if (!ConfigHandler.blockBlacklist.contains(name))
|
||||
GameRegistry.registerBlock(block, itemBlock, name);
|
||||
|
||||
return block;
|
||||
}
|
||||
|
||||
private static Block registerBlock(Block block, String name) {
|
||||
if (!ConfigHandler.blockBlacklist.contains(name))
|
||||
GameRegistry.registerBlock(block, name);
|
||||
|
||||
return block;
|
||||
}
|
||||
|
||||
private static Block registerBlock(Block block) {
|
||||
return registerBlock(block, block.getClass().getSimpleName());
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue