Changed formatting to have bracing on a new line
This commit is contained in:
parent
e5eddd6c45
commit
e48eedb874
189 changed files with 6092 additions and 4041 deletions
|
@ -12,7 +12,8 @@ import net.minecraft.item.ItemBlock;
|
|||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
public class ModBlocks {
|
||||
public class ModBlocks
|
||||
{
|
||||
public static Block altar;
|
||||
public static Block bloodRune;
|
||||
public static Block ritualController;
|
||||
|
@ -30,7 +31,8 @@ public class ModBlocks {
|
|||
public static Block crystal;
|
||||
public static Block bloodStoneBrick;
|
||||
|
||||
public static void init() {
|
||||
public static void init()
|
||||
{
|
||||
FluidRegistry.registerFluid(BlockLifeEssence.getLifeEssence());
|
||||
lifeEssence = registerBlock(new BlockLifeEssence());
|
||||
|
||||
|
@ -51,7 +53,8 @@ public class ModBlocks {
|
|||
initTiles();
|
||||
}
|
||||
|
||||
public static void initTiles() {
|
||||
public static void initTiles()
|
||||
{
|
||||
GameRegistry.registerTileEntity(TileAltar.class, Constants.Mod.MODID + ":" + TileAltar.class.getSimpleName());
|
||||
GameRegistry.registerTileEntity(TileImperfectRitualStone.class, Constants.Mod.MODID + ":" + TileImperfectRitualStone.class.getSimpleName());
|
||||
GameRegistry.registerTileEntity(TileMasterRitualStone.class, Constants.Mod.MODID + ":" + TileMasterRitualStone.class.getSimpleName());
|
||||
|
@ -61,7 +64,8 @@ public class ModBlocks {
|
|||
GameRegistry.registerTileEntity(TilePhantomBlock.class, Constants.Mod.MODID + ":" + TilePhantomBlock.class.getSimpleName());
|
||||
}
|
||||
|
||||
public static void initRenders() {
|
||||
public static void initRenders()
|
||||
{
|
||||
InventoryRenderHelper renderHelper = BloodMagic.proxy.getRenderHelper();
|
||||
|
||||
renderHelper.fluidRender(lifeEssence);
|
||||
|
@ -97,25 +101,29 @@ public class ModBlocks {
|
|||
renderHelper.itemRender(InventoryRenderHelper.getItemFromBlock(phantomBlock));
|
||||
}
|
||||
|
||||
private static Block registerBlock(Block block, Class<? extends ItemBlock> itemBlock, String name) {
|
||||
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, Class<? extends ItemBlock> itemBlock) {
|
||||
private static Block registerBlock(Block block, Class<? extends ItemBlock> itemBlock)
|
||||
{
|
||||
return registerBlock(block, itemBlock, block.getClass().getSimpleName());
|
||||
}
|
||||
|
||||
private static Block registerBlock(Block block, String name) {
|
||||
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) {
|
||||
private static Block registerBlock(Block block)
|
||||
{
|
||||
return registerBlock(block, block.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,14 +6,17 @@ import net.minecraftforge.fml.common.Loader;
|
|||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class ModCompatibility {
|
||||
public class ModCompatibility
|
||||
{
|
||||
|
||||
private static ArrayList<ICompatibility> compatibilities = new ArrayList<ICompatibility>();
|
||||
|
||||
public static void registerModCompat() {
|
||||
public static void registerModCompat()
|
||||
{
|
||||
compatibilities.add(new CompatibilityJustEnoughItems());
|
||||
|
||||
for (ICompatibility compat : compatibilities) {
|
||||
for (ICompatibility compat : compatibilities)
|
||||
{
|
||||
if (compat.enableCompat() && Loader.isModLoaded(compat.getModId()))
|
||||
compat.loadCompatibility();
|
||||
}
|
||||
|
|
|
@ -4,9 +4,11 @@ import WayofTime.bloodmagic.BloodMagic;
|
|||
import WayofTime.bloodmagic.entity.projectile.EntityBloodLight;
|
||||
import net.minecraftforge.fml.common.registry.EntityRegistry;
|
||||
|
||||
public class ModEntities {
|
||||
public class ModEntities
|
||||
{
|
||||
|
||||
public static void init() {
|
||||
public static void init()
|
||||
{
|
||||
int id = 0;
|
||||
|
||||
EntityRegistry.registerModEntity(EntityBloodLight.class, "BloodLight", id++, BloodMagic.instance, 64, 20, true);
|
||||
|
|
|
@ -15,7 +15,8 @@ import WayofTime.bloodmagic.item.gear.ItemPackSelfSacrifice;
|
|||
import WayofTime.bloodmagic.item.sigil.*;
|
||||
import WayofTime.bloodmagic.util.helper.InventoryRenderHelper;
|
||||
|
||||
public class ModItems {
|
||||
public class ModItems
|
||||
{
|
||||
|
||||
public static Item bloodOrb;
|
||||
public static BloodOrb orbWeak;
|
||||
|
@ -63,7 +64,7 @@ public class ModItems {
|
|||
public static Item itemComponent;
|
||||
|
||||
public static Item bloodShard;
|
||||
|
||||
|
||||
public static Item livingArmourHelmet;
|
||||
public static Item livingArmourChest;
|
||||
public static Item livingArmourLegs;
|
||||
|
@ -73,7 +74,8 @@ public class ModItems {
|
|||
|
||||
public static Item.ToolMaterial boundToolMaterial = EnumHelper.addToolMaterial("BoundToolMaterial", 4, 0, 12, 8, 50);
|
||||
|
||||
public static void init() {
|
||||
public static void init()
|
||||
{
|
||||
bloodOrb = registerItem(new ItemBloodOrb());
|
||||
orbWeak = new BloodOrb("weak", 1, 5000);
|
||||
OrbRegistry.registerOrb(orbWeak);
|
||||
|
@ -100,7 +102,7 @@ public class ModItems {
|
|||
daggerOfSacrifice = registerItem(new ItemDaggerOfSacrifice());
|
||||
|
||||
ritualDiviner = registerItem(new ItemRitualDiviner());
|
||||
|
||||
|
||||
boundSword = registerItem(new ItemBoundSword());
|
||||
boundPickaxe = registerItem(new ItemBoundPickaxe());
|
||||
boundAxe = registerItem(new ItemBoundAxe());
|
||||
|
@ -127,7 +129,7 @@ public class ModItems {
|
|||
itemComponent = registerItem(new ItemComponent());
|
||||
|
||||
bloodShard = registerItem(new ItemBloodShard());
|
||||
|
||||
|
||||
livingArmourHelmet = registerItem(new ItemLivingArmour(0), "ItemLivingArmourHelmet");
|
||||
livingArmourChest = registerItem(new ItemLivingArmour(1), "ItemLivingArmourChest");
|
||||
livingArmourLegs = registerItem(new ItemLivingArmour(2), "ItemLivingArmourLegs");
|
||||
|
@ -136,7 +138,8 @@ public class ModItems {
|
|||
altarMaker = registerItem(new ItemAltarMaker());
|
||||
}
|
||||
|
||||
public static void initRenders() {
|
||||
public static void initRenders()
|
||||
{
|
||||
InventoryRenderHelper renderHelper = BloodMagic.proxy.getRenderHelper();
|
||||
|
||||
renderHelper.itemRenderAll(bloodOrb);
|
||||
|
@ -171,7 +174,7 @@ public class ModItems {
|
|||
renderHelper.itemRender(packSacrifice);
|
||||
renderHelper.itemRender(packSelfSacrifice);
|
||||
renderHelper.itemRender(daggerOfSacrifice);
|
||||
|
||||
|
||||
renderHelper.itemRender(ritualDiviner, 0);
|
||||
|
||||
renderHelper.itemRender(boundSword, 0);
|
||||
|
@ -211,8 +214,8 @@ public class ModItems {
|
|||
renderHelper.itemRender(sigilEnderSeverance, 0);
|
||||
renderHelper.itemRender(sigilEnderSeverance, 1);
|
||||
|
||||
for(int i = 0 ; i < ItemComponent.getNames().size() ; i++)
|
||||
renderHelper.itemRender(itemComponent, i);
|
||||
for (int i = 0; i < ItemComponent.getNames().size(); i++)
|
||||
renderHelper.itemRender(itemComponent, i);
|
||||
|
||||
renderHelper.itemRender(bloodShard, 0);
|
||||
renderHelper.itemRender(bloodShard, 1);
|
||||
|
@ -225,14 +228,16 @@ public class ModItems {
|
|||
renderHelper.itemRender(altarMaker);
|
||||
}
|
||||
|
||||
private static Item registerItem(Item item, String name) {
|
||||
private static Item registerItem(Item item, String name)
|
||||
{
|
||||
if (!ConfigHandler.itemBlacklist.contains(name))
|
||||
GameRegistry.registerItem(item, name);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
private static Item registerItem(Item item) {
|
||||
private static Item registerItem(Item item)
|
||||
{
|
||||
return registerItem(item, item.getClass().getSimpleName());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ import net.minecraft.util.ResourceLocation;
|
|||
import WayofTime.bloodmagic.potion.PotionBloodMagic;
|
||||
import WayofTime.bloodmagic.potion.PotionEventHandlers;
|
||||
|
||||
public class ModPotions {
|
||||
public class ModPotions
|
||||
{
|
||||
|
||||
public static Potion drowning;
|
||||
public static Potion boost;
|
||||
|
@ -16,31 +17,43 @@ public class ModPotions {
|
|||
public static Potion whirlwind;
|
||||
public static Potion planarBinding;
|
||||
|
||||
public static void init() {
|
||||
if (Potion.potionTypes.length < 256) extendPortionArray();
|
||||
public static void init()
|
||||
{
|
||||
if (Potion.potionTypes.length < 256)
|
||||
extendPortionArray();
|
||||
|
||||
new PotionEventHandlers();
|
||||
|
||||
//TODO FUTURE MAKE POTION TEXTURES
|
||||
// TODO FUTURE MAKE POTION TEXTURES
|
||||
|
||||
// final String resourceLocation = Constants.Mod.MODID + ":textures/potions/";
|
||||
// final String resourceLocation = Constants.Mod.MODID +
|
||||
// ":textures/potions/";
|
||||
|
||||
// drowning = new PotionBloodMagic("Drowning", new ResourceLocation(resourceLocation + drowning.getName().toLowerCase()), true, 0, 0, 0);
|
||||
// drowning = new PotionBloodMagic("Drowning", new
|
||||
// ResourceLocation(resourceLocation +
|
||||
// drowning.getName().toLowerCase()), true, 0, 0, 0);
|
||||
boost = new PotionBloodMagic("Boost", new ResourceLocation("boost")
|
||||
// new ResourceLocation(resourceLocation + boost.getName().toLowerCase())
|
||||
, false, 0, 0, 0);
|
||||
// new ResourceLocation(resourceLocation +
|
||||
// boost.getName().toLowerCase())
|
||||
, false, 0, 0, 0);
|
||||
whirlwind = new PotionBloodMagic("Whirlwind", new ResourceLocation("whirlwind"), false, 0, 0, 0);
|
||||
planarBinding = new PotionBloodMagic("Planar Binding", new ResourceLocation("planarBinding"), false, 0, 0, 0);
|
||||
// heavyHeart = new PotionBloodMagic("Heavy Heart", new ResourceLocation(resourceLocation + heavyHeart.getName().toLowerCase()), true, 0, 0, 0);
|
||||
// heavyHeart = new PotionBloodMagic("Heavy Heart", new
|
||||
// ResourceLocation(resourceLocation +
|
||||
// heavyHeart.getName().toLowerCase()), true, 0, 0, 0);
|
||||
}
|
||||
|
||||
public static void extendPortionArray() {
|
||||
public static void extendPortionArray()
|
||||
{
|
||||
Potion[] potionTypes;
|
||||
|
||||
for (Field f : Potion.class.getDeclaredFields()) {
|
||||
for (Field f : Potion.class.getDeclaredFields())
|
||||
{
|
||||
f.setAccessible(true);
|
||||
try {
|
||||
if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a")) {
|
||||
try
|
||||
{
|
||||
if (f.getName().equals("potionTypes") || f.getName().equals("field_76425_a"))
|
||||
{
|
||||
Field field = Field.class.getDeclaredField("modifiers");
|
||||
field.setAccessible(true);
|
||||
field.setInt(f, f.getModifiers() & ~Modifier.FINAL);
|
||||
|
@ -50,7 +63,8 @@ public class ModPotions {
|
|||
System.arraycopy(potionTypes, 0, newPotionTypes, 0, potionTypes.length);
|
||||
f.set(null, newPotionTypes);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (Exception e)
|
||||
{
|
||||
System.err.println(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,77 +22,83 @@ import WayofTime.bloodmagic.compress.StorageBlockCraftingManager;
|
|||
import WayofTime.bloodmagic.item.ItemComponent;
|
||||
import net.minecraftforge.oredict.RecipeSorter;
|
||||
|
||||
public class ModRecipes {
|
||||
public class ModRecipes
|
||||
{
|
||||
|
||||
public static void init() {
|
||||
RecipeSorter.register(Constants.Mod.DOMAIN + "shapedorb", ShapedBloodOrbRecipe.class, RecipeSorter.Category.SHAPED, "before:minecraft:shapeless");
|
||||
RecipeSorter.register(Constants.Mod.DOMAIN + ":shapelessorb", ShapelessBloodOrbRecipe.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
|
||||
public static void init()
|
||||
{
|
||||
RecipeSorter.register(Constants.Mod.DOMAIN + "shapedorb", ShapedBloodOrbRecipe.class, RecipeSorter.Category.SHAPED, "before:minecraft:shapeless");
|
||||
RecipeSorter.register(Constants.Mod.DOMAIN + ":shapelessorb", ShapelessBloodOrbRecipe.class, RecipeSorter.Category.SHAPELESS, "after:minecraft:shapeless");
|
||||
|
||||
addCraftingRecipes();
|
||||
addAltarRecipes();
|
||||
addAlchemyArrayRecipes();
|
||||
}
|
||||
addCraftingRecipes();
|
||||
addAltarRecipes();
|
||||
addAlchemyArrayRecipes();
|
||||
}
|
||||
|
||||
public static void addCraftingRecipes() {
|
||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), "xox", "oSo", "xox", 'S', OrbRegistry.getOrbStack(ModItems.orbMagician), 'o', new ItemStack(Items.redstone), 'x', new ItemStack(Items.glowstone_dust)));
|
||||
// Added for testing
|
||||
GameRegistry.addRecipe(new ShapelessBloodOrbRecipe(new ItemStack(Items.gold_ingot), new ItemStack(ModItems.slate, 1, 1), OrbRegistry.getOrbStack(ModItems.orbApprentice)));
|
||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(Items.diamond), " ", " s ", " o ", 's', new ItemStack(ModItems.slate), 'o', OrbRegistry.getOrbStack(ModItems.orbWeak)));
|
||||
public static void addCraftingRecipes()
|
||||
{
|
||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), "xox", "oSo", "xox", 'S', OrbRegistry.getOrbStack(ModItems.orbMagician), 'o', new ItemStack(Items.redstone), 'x', new ItemStack(Items.glowstone_dust)));
|
||||
// Added for testing
|
||||
GameRegistry.addRecipe(new ShapelessBloodOrbRecipe(new ItemStack(Items.gold_ingot), new ItemStack(ModItems.slate, 1, 1), OrbRegistry.getOrbStack(ModItems.orbApprentice)));
|
||||
GameRegistry.addRecipe(new ShapedBloodOrbRecipe(new ItemStack(Items.diamond), " ", " s ", " o ", 's', new ItemStack(ModItems.slate), 'o', OrbRegistry.getOrbStack(ModItems.orbWeak)));
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ritualDiviner), "dfd", "ase", "dwd", 'f', EnumRuneType.FIRE.getScribeStack(), 'a', EnumRuneType.AIR.getScribeStack(), 'w', EnumRuneType.WATER.getScribeStack(), 'e', EnumRuneType.EARTH.getScribeStack(), 'd', new ItemStack(Items.diamond), 's', new ItemStack(Items.stick));
|
||||
}
|
||||
GameRegistry.addRecipe(new ItemStack(ModItems.ritualDiviner), "dfd", "ase", "dwd", 'f', EnumRuneType.FIRE.getScribeStack(), 'a', EnumRuneType.AIR.getScribeStack(), 'w', EnumRuneType.WATER.getScribeStack(), 'e', EnumRuneType.EARTH.getScribeStack(), 'd', new ItemStack(Items.diamond), 's', new ItemStack(Items.stick));
|
||||
}
|
||||
|
||||
public static void addAltarRecipes() {
|
||||
// ONE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(OrbRegistry.getOrbStack(ModItems.orbWeak), OrbRegistry.getOrbStack(ModItems.orbWeak), EnumAltarTier.ONE, 5000, 2, 1, true));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.diamond), OrbRegistry.getOrbStack(ModItems.orbWeak), EnumAltarTier.ONE, 2000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.stone), new ItemStack(ModItems.slate), EnumAltarTier.ONE, 1000, 5, 5, false));
|
||||
public static void addAltarRecipes()
|
||||
{
|
||||
// ONE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(OrbRegistry.getOrbStack(ModItems.orbWeak), OrbRegistry.getOrbStack(ModItems.orbWeak), EnumAltarTier.ONE, 5000, 2, 1, true));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.diamond), OrbRegistry.getOrbStack(ModItems.orbWeak), EnumAltarTier.ONE, 2000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.stone), new ItemStack(ModItems.slate), EnumAltarTier.ONE, 1000, 5, 5, false));
|
||||
|
||||
// TWO
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.emerald), OrbRegistry.getOrbStack(ModItems.orbApprentice), EnumAltarTier.TWO, 5000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate), new ItemStack(ModItems.slate, 1, 1), EnumAltarTier.TWO, 2000, 5, 5, false));
|
||||
// TWO
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.emerald), OrbRegistry.getOrbStack(ModItems.orbApprentice), EnumAltarTier.TWO, 5000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate), new ItemStack(ModItems.slate, 1, 1), EnumAltarTier.TWO, 2000, 5, 5, false));
|
||||
|
||||
// THREE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.gold_block), OrbRegistry.getOrbStack(ModItems.orbMagician), EnumAltarTier.THREE, 25000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.slate, 1, 2), EnumAltarTier.THREE, 5000, 15, 10, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.obsidian), EnumRuneType.EARTH.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.lapis_block), EnumRuneType.WATER.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.magma_cream), EnumRuneType.FIRE.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.ghast_tear), EnumRuneType.AIR.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
// THREE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.gold_block), OrbRegistry.getOrbStack(ModItems.orbMagician), EnumAltarTier.THREE, 25000, 2, 1, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.slate, 1, 2), EnumAltarTier.THREE, 5000, 15, 10, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.obsidian), EnumRuneType.EARTH.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.lapis_block), EnumRuneType.WATER.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.magma_cream), EnumRuneType.FIRE.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Items.ghast_tear), EnumRuneType.AIR.getScribeStack(), EnumAltarTier.THREE, 1000, 5, 5, false));
|
||||
|
||||
// FOUR
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 2), new ItemStack(ModItems.slate, 1, 3), EnumAltarTier.FOUR, 15000, 20, 20, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.coal_block), EnumRuneType.DUSK.getScribeStack(), EnumAltarTier.FOUR, 2000, 20, 10, false));
|
||||
// FOUR
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 2), new ItemStack(ModItems.slate, 1, 3), EnumAltarTier.FOUR, 15000, 20, 20, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.coal_block), EnumRuneType.DUSK.getScribeStack(), EnumAltarTier.FOUR, 2000, 20, 10, false));
|
||||
|
||||
// FIVE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 3), new ItemStack(ModItems.slate, 1, 4), EnumAltarTier.FIVE, 30000, 40, 100, false));
|
||||
// FIVE
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModItems.slate, 1, 3), new ItemStack(ModItems.slate, 1, 4), EnumAltarTier.FIVE, 30000, 40, 100, false));
|
||||
|
||||
// SIX
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModBlocks.crystal), OrbRegistry.getOrbStack(ModItems.orbTranscendent), EnumAltarTier.SIX, 200000, 100, 200, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.glowstone), EnumRuneType.DAWN.getScribeStack(), EnumAltarTier.SIX, 200000, 100, 200, false));
|
||||
}
|
||||
// SIX
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(ModBlocks.crystal), OrbRegistry.getOrbStack(ModItems.orbTranscendent), EnumAltarTier.SIX, 200000, 100, 200, false));
|
||||
AltarRecipeRegistry.registerRecipe(new AltarRecipeRegistry.AltarRecipe(new ItemStack(Blocks.glowstone), EnumRuneType.DAWN.getScribeStack(), EnumAltarTier.SIX, 200000, 100, 200, false));
|
||||
}
|
||||
|
||||
public static void addAlchemyArrayRecipes() {
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_sword), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundSword)), new BindingAlchemyCircleRenderer());
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_axe), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundAxe)));
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_pickaxe), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundPickaxe)));
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_shovel), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundShovel)));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_WATER), new ItemStack(ModItems.slate), new ItemStack(ModItems.sigilWater), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/WaterSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_LAVA), new ItemStack(ModItems.slate), new ItemStack(ModItems.sigilLava), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/LavaSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_AIR), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilAir), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/AirSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_FASTMINER), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilFastMiner), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/FastMinerSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_VOID), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilVoid), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/VoidSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_GROWTH), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilGreenGrove), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/GrowthSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_AFFINITY), new ItemStack(ModItems.slate, 1, 2), new ItemStack(ModItems.sigilElementalAffinity), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/ElementalAffinitySigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_SIGHT), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilSeer), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/SightSigil.png"));
|
||||
}
|
||||
public static void addAlchemyArrayRecipes()
|
||||
{
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_sword), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundSword)), new BindingAlchemyCircleRenderer());
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_axe), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundAxe)));
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_pickaxe), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundPickaxe)));
|
||||
AlchemyArrayRecipeRegistry.registerRecipe(ItemComponent.getStack(ItemComponent.REAGENT_BINDING), new ItemStack(Items.diamond_shovel), new AlchemyArrayEffectBinding(new ItemStack(ModItems.boundShovel)));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_WATER), new ItemStack(ModItems.slate), new ItemStack(ModItems.sigilWater), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/WaterSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_LAVA), new ItemStack(ModItems.slate), new ItemStack(ModItems.sigilLava), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/LavaSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_AIR), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilAir), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/AirSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_FASTMINER), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilFastMiner), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/FastMinerSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_VOID), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilVoid), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/VoidSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_GROWTH), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilGreenGrove), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/GrowthSigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_AFFINITY), new ItemStack(ModItems.slate, 1, 2), new ItemStack(ModItems.sigilElementalAffinity), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/ElementalAffinitySigil.png"));
|
||||
AlchemyArrayRecipeRegistry.registerCraftingRecipe(ItemComponent.getStack(ItemComponent.REAGENT_SIGHT), new ItemStack(ModItems.slate, 1, 1), new ItemStack(ModItems.sigilSeer), new ResourceLocation("bloodmagic", "textures/models/AlchemyArrays/SightSigil.png"));
|
||||
}
|
||||
|
||||
public static void addCompressionHandlers() {
|
||||
StorageBlockCraftingManager.getInstance().addStorageBlockRecipes();
|
||||
CompressionRegistry.registerHandler(new BaseCompressionHandler(new ItemStack(Items.glowstone_dust, 4, 0), new ItemStack(Blocks.glowstone), 64));
|
||||
CompressionRegistry.registerHandler(new BaseCompressionHandler(new ItemStack(Items.snowball, 4, 0), new ItemStack(Blocks.snow), 8));
|
||||
CompressionRegistry.registerHandler(new AdvancedCompressionHandler());
|
||||
public static void addCompressionHandlers()
|
||||
{
|
||||
StorageBlockCraftingManager.getInstance().addStorageBlockRecipes();
|
||||
CompressionRegistry.registerHandler(new BaseCompressionHandler(new ItemStack(Items.glowstone_dust, 4, 0), new ItemStack(Blocks.glowstone), 64));
|
||||
CompressionRegistry.registerHandler(new BaseCompressionHandler(new ItemStack(Items.snowball, 4, 0), new ItemStack(Blocks.snow), 8));
|
||||
CompressionRegistry.registerHandler(new AdvancedCompressionHandler());
|
||||
|
||||
CompressionRegistry.registerItemThreshold(new ItemStack(Blocks.cobblestone), 64);
|
||||
}
|
||||
CompressionRegistry.registerItemThreshold(new ItemStack(Blocks.cobblestone), 64);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,8 @@ import WayofTime.bloodmagic.ritual.imperfect.ImperfectRitualRain;
|
|||
import WayofTime.bloodmagic.ritual.imperfect.ImperfectRitualResistance;
|
||||
import WayofTime.bloodmagic.ritual.imperfect.ImperfectRitualZombie;
|
||||
|
||||
public class ModRituals {
|
||||
public class ModRituals
|
||||
{
|
||||
|
||||
public static Ritual testRitual;
|
||||
public static Ritual waterRitual;
|
||||
|
@ -25,19 +26,21 @@ public class ModRituals {
|
|||
public static ImperfectRitual imperfectResistance;
|
||||
public static ImperfectRitual imperfectZombie;
|
||||
|
||||
public static void initRituals() {
|
||||
public static void initRituals()
|
||||
{
|
||||
testRitual = new RitualTest();
|
||||
waterRitual = new RitualWater();
|
||||
lavaRitual = new RitualLava();
|
||||
greenGroveRitual = new RitualGreenGrove();
|
||||
|
||||
|
||||
RitualRegistry.registerRitual(testRitual, testRitual.getName());
|
||||
RitualRegistry.registerRitual(waterRitual, waterRitual.getName());
|
||||
RitualRegistry.registerRitual(lavaRitual, lavaRitual.getName());
|
||||
RitualRegistry.registerRitual(greenGroveRitual, greenGroveRitual.getName());
|
||||
}
|
||||
|
||||
public static void initImperfectRituals() {
|
||||
public static void initImperfectRituals()
|
||||
{
|
||||
imperfectNight = new ImperfectRitualNight();
|
||||
ImperfectRitualRegistry.registerRitual(imperfectNight);
|
||||
imperfectRain = new ImperfectRitualRain();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue