BloodMagic/src/main/java/WayofTime/bloodmagic/api/soul/IDemonWill.java

53 lines
1.4 KiB
Java
Raw Normal View History

package WayofTime.bloodmagic.api.soul;
import net.minecraft.item.ItemStack;
public interface IDemonWill
{
/**
* Obtains the amount of Will an ItemStack contains.
2016-03-16 18:41:06 -04:00
*
* @param willStack
2016-03-16 18:41:06 -04:00
* - The stack to retrieve the Will from
*
* @return - The amount of Will an ItemStack contains
*/
double getWill(ItemStack willStack);
/**
* Sets the amount of Will in a given ItemStack.
2016-03-16 18:41:06 -04:00
*
* @param willStack
2016-03-16 18:41:06 -04:00
* - The ItemStack of the Will
* @param will
2016-03-16 18:41:06 -04:00
* - The amount of will to set the stack to
*/
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.
*
* @param willStack
2016-03-16 18:41:06 -04:00
* - The ItemStack of the will
* @param drainAmount
2016-03-16 18:41:06 -04:00
* - The amount of Will to drain
*
* @return The amount of will drained.
*/
double drainWill(ItemStack willStack, double drainAmount);
/**
* Creates a new ItemStack with the specified number of will. Implementation
* should respect the number requested.
*
* @param meta
2016-03-16 18:41:06 -04:00
* - The meta of the ItemStack to create
* @param number
2016-03-16 18:41:06 -04:00
* - The amount of Will to create the Stack with.
*
* @return - An ItemStack with the set amount of Will
*/
ItemStack createWill(int meta, double number);
}