Interface IForgeMobEffectInstance
- All Known Implementing Classes:
MobEffectInstance
public interface IForgeMobEffectInstance
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addCurativeItem(ItemStack stack)
Adds the given stack to the list of curative items for this PotionEffectReturns a list of curative items for the potion effect By default, this list is initialized usingIForgeMobEffect.getCurativeItems()
default boolean
isCurativeItem(ItemStack stack)
Checks the given ItemStack to see if it is in the list of curative items for the potion effectvoid
setCurativeItems(List<ItemStack> curativeItems)
Sets the list of curative items for this potion effect, overwriting any already presentdefault void
-
Method Details
-
getCurativeItems
Returns a list of curative items for the potion effect By default, this list is initialized usingIForgeMobEffect.getCurativeItems()
- Returns:
- The list (ItemStack) of curative items for the potion effect
-
isCurativeItem
Checks the given ItemStack to see if it is in the list of curative items for the potion effect- Parameters:
stack
- The ItemStack being checked against the list of curative items for this PotionEffect- Returns:
- true if the given ItemStack is in the list of curative items for this PotionEffect, false otherwise
-
setCurativeItems
Sets the list of curative items for this potion effect, overwriting any already present- Parameters:
curativeItems
- The list of ItemStacks being set to the potion effect
-
addCurativeItem
Adds the given stack to the list of curative items for this PotionEffect- Parameters:
stack
- The ItemStack being added to the curative item list
-
writeCurativeItems
-