diff --git a/changelog.txt b/changelog.txt index 7e356dfd..29eca95e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version 2.1.0-69 ------------------------------------------------------ - Fixed Phantom Bridge sigil glitch when travelling between dimensions and teleporting large distances. +- Added deprecated methods for easier updating - Oops! ------------------------------------------------------ Version 2.1.0-68 diff --git a/src/main/java/WayofTime/bloodmagic/api/soul/IDemonWill.java b/src/main/java/WayofTime/bloodmagic/api/soul/IDemonWill.java index f9d5f23f..ea1a3717 100644 --- a/src/main/java/WayofTime/bloodmagic/api/soul/IDemonWill.java +++ b/src/main/java/WayofTime/bloodmagic/api/soul/IDemonWill.java @@ -14,6 +14,9 @@ public interface IDemonWill */ double getWill(EnumDemonWillType type, ItemStack willStack); + @Deprecated + double getWill(ItemStack willStack); + /** * Sets the amount of Will in a given ItemStack. * @@ -24,6 +27,9 @@ public interface IDemonWill */ void setWill(EnumDemonWillType type, ItemStack willStack, double will); + @Deprecated + void setWill(ItemStack willStack, double will); + /** * Drains the demonic will from the willStack. If all of the will is * drained, the willStack will be removed. @@ -37,6 +43,9 @@ public interface IDemonWill */ double drainWill(EnumDemonWillType type, ItemStack willStack, double drainAmount); + @Deprecated + double drainWill(ItemStack willStack, double drainAmount); + /** * Creates a new ItemStack with the specified number of will. Implementation * should respect the number requested. diff --git a/src/main/java/WayofTime/bloodmagic/item/soul/ItemMonsterSoul.java b/src/main/java/WayofTime/bloodmagic/item/soul/ItemMonsterSoul.java index b4d870e7..5e615643 100644 --- a/src/main/java/WayofTime/bloodmagic/item/soul/ItemMonsterSoul.java +++ b/src/main/java/WayofTime/bloodmagic/item/soul/ItemMonsterSoul.java @@ -123,4 +123,22 @@ public class ItemMonsterSoul extends Item implements IDemonWill, IVariantProvide } return ret; } + + @Override + public double getWill(ItemStack willStack) + { + return this.getWill(EnumDemonWillType.DEFAULT, willStack); + } + + @Override + public void setWill(ItemStack willStack, double will) + { + this.setWill(EnumDemonWillType.DEFAULT, willStack, will); + } + + @Override + public double drainWill(ItemStack willStack, double drainAmount) + { + return this.drainWill(EnumDemonWillType.DEFAULT, willStack, drainAmount); + } }