Added deprecated methods for easier updating - Oops!
This commit is contained in:
parent
99f9d06659
commit
d1f4e95a7e
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue