public interface IForgeEffectInstance
Modifier and Type | Method and Description |
---|---|
default void |
addCurativeItem(ItemStack stack)
Adds the given stack to the list of curative items for this PotionEffect
|
java.util.List<ItemStack> |
getCurativeItems()
Returns a list of curative items for the potion effect
By default, this list is initialized using
Potion#getCurativeItems |
default EffectInstance |
getEffectInstance() |
default boolean |
isCurativeItem(ItemStack stack)
Checks the given ItemStack to see if it is in the list of curative items for the potion effect
|
void |
setCurativeItems(java.util.List<ItemStack> curativeItems)
Sets the list of curative items for this potion effect, overwriting any already present
|
default void |
writeCurativeItems(CompoundNBT nbt) |
default EffectInstance getEffectInstance()
java.util.List<ItemStack> getCurativeItems()
Potion#getCurativeItems
default boolean isCurativeItem(ItemStack stack)
stack
- The ItemStack being checked against the list of curative items for this PotionEffectvoid setCurativeItems(java.util.List<ItemStack> curativeItems)
curativeItems
- The list of ItemStacks being set to the potion effectdefault void addCurativeItem(ItemStack stack)
stack
- The ItemStack being added to the curative item listdefault void writeCurativeItems(CompoundNBT nbt)