diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/achievements/AchievementsRegistry.java b/src/main/java/WayofTime/alchemicalWizardry/common/achievements/AchievementsRegistry.java index 5545ab85..2f09461d 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/achievements/AchievementsRegistry.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/achievements/AchievementsRegistry.java @@ -2,6 +2,7 @@ package WayofTime.alchemicalWizardry.common.achievements; import WayofTime.alchemicalWizardry.ModItems; import net.minecraft.item.Item; +import net.minecraft.block.Block; import net.minecraft.stats.Achievement; import java.util.ArrayList; @@ -40,4 +41,9 @@ public class AchievementsRegistry } return null; } + + public static Achievement getAchievementForBlock(Block block) + { + return null; + } } diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/items/DaggerOfSacrifice.java b/src/main/java/WayofTime/alchemicalWizardry/common/items/DaggerOfSacrifice.java index c5a8cb5f..1c1be7c5 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/items/DaggerOfSacrifice.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/items/DaggerOfSacrifice.java @@ -24,7 +24,7 @@ import WayofTime.alchemicalWizardry.AlchemicalWizardry; import WayofTime.alchemicalWizardry.common.IDemon; import WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.IHoardDemon; import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper; -import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar; +import WayofTime.alchemicalWizardry.api.tile.IBloodAltar; import com.google.common.collect.Multimap; @@ -152,7 +152,7 @@ public class DaggerOfSacrifice extends EnergyItems int posX = (int) Math.round(sacrifice.posX - 0.5f); int posY = (int) sacrifice.posY; int posZ = (int) Math.round(sacrifice.posZ - 0.5f); - TEAltar altarEntity = this.getAltar(world, posX, posY, posZ); + IBloodAltar altarEntity = this.getAltar(world, posX, posY, posZ); if (altarEntity == null) { @@ -169,7 +169,7 @@ public class DaggerOfSacrifice extends EnergyItems int posX = (int) Math.round(sacrifice.posX - 0.5f); int posY = (int) sacrifice.posY; int posZ = (int) Math.round(sacrifice.posZ - 0.5f); - TEAltar altarEntity = this.getAltar(world, posX, posY, posZ); + IBloodAltar altarEntity = this.getAltar(world, posX, posY, posZ); if (altarEntity == null) { @@ -181,7 +181,7 @@ public class DaggerOfSacrifice extends EnergyItems return true; } - public TEAltar getAltar(World world, int x, int y, int z) + public IBloodAltar getAltar(World world, int x, int y, int z) { TileEntity tileEntity = null; @@ -193,27 +193,27 @@ public class DaggerOfSacrifice extends EnergyItems { tileEntity = world.getTileEntity(i + x, k + y, j + z); - if ((tileEntity instanceof TEAltar)) + if ((tileEntity instanceof IBloodAltar)) { - return (TEAltar) tileEntity; + return (IBloodAltar) tileEntity; } } - if ((tileEntity instanceof TEAltar)) + if ((tileEntity instanceof IBloodAltar)) { - return (TEAltar) tileEntity; + return (IBloodAltar) tileEntity; } } - if ((tileEntity instanceof TEAltar)) + if ((tileEntity instanceof IBloodAltar)) { - return (TEAltar) tileEntity; + return (IBloodAltar) tileEntity; } } - if ((tileEntity instanceof TEAltar)) + if ((tileEntity instanceof IBloodAltar)) { - return (TEAltar) tileEntity; + return (IBloodAltar) tileEntity; } return null;