Added deprecated methods for easier updating - Oops!
This commit is contained in:
parent
99f9d06659
commit
d1f4e95a7e
3 changed files with 28 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
Version 2.1.0-69
|
Version 2.1.0-69
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
- Fixed Phantom Bridge sigil glitch when travelling between dimensions and teleporting large distances.
|
- 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
|
Version 2.1.0-68
|
||||||
|
|
|
@ -14,6 +14,9 @@ public interface IDemonWill
|
||||||
*/
|
*/
|
||||||
double getWill(EnumDemonWillType type, ItemStack willStack);
|
double getWill(EnumDemonWillType type, ItemStack willStack);
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
double getWill(ItemStack willStack);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the amount of Will in a given ItemStack.
|
* Sets the amount of Will in a given ItemStack.
|
||||||
*
|
*
|
||||||
|
@ -24,6 +27,9 @@ public interface IDemonWill
|
||||||
*/
|
*/
|
||||||
void setWill(EnumDemonWillType type, ItemStack willStack, double will);
|
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
|
* Drains the demonic will from the willStack. If all of the will is
|
||||||
* drained, the willStack will be removed.
|
* drained, the willStack will be removed.
|
||||||
|
@ -37,6 +43,9 @@ public interface IDemonWill
|
||||||
*/
|
*/
|
||||||
double drainWill(EnumDemonWillType type, ItemStack willStack, double drainAmount);
|
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
|
* Creates a new ItemStack with the specified number of will. Implementation
|
||||||
* should respect the number requested.
|
* should respect the number requested.
|
||||||
|
|
|
@ -123,4 +123,22 @@ public class ItemMonsterSoul extends Item implements IDemonWill, IVariantProvide
|
||||||
}
|
}
|
||||||
return ret;
|
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…
Add table
Add a link
Reference in a new issue