57 lines
1.7 KiB
Java
57 lines
1.7 KiB
Java
![]() |
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());
|
||
|
}
|
||
|
}
|