接口 IForgeMobEffectInstance

所有已知实现类:
MobEffectInstance

public interface IForgeMobEffectInstance
  • 方法详细资料

    • getCurativeItems

      List<ItemStack> getCurativeItems()
      Returns a list of curative items for the potion effect By default, this list is initialized using IForgeMobEffect.getCurativeItems()
      返回:
      The list (ItemStack) of curative items for the potion effect
    • isCurativeItem

      default boolean isCurativeItem(ItemStack stack)
      Checks the given ItemStack to see if it is in the list of curative items for the potion effect
      参数:
      stack - The ItemStack being checked against the list of curative items for this PotionEffect
      返回:
      true if the given ItemStack is in the list of curative items for this PotionEffect, false otherwise
    • setCurativeItems

      void setCurativeItems(List<ItemStack> curativeItems)
      Sets the list of curative items for this potion effect, overwriting any already present
      参数:
      curativeItems - The list of ItemStacks being set to the potion effect
    • addCurativeItem

      default void addCurativeItem(ItemStack stack)
      Adds the given stack to the list of curative items for this PotionEffect
      参数:
      stack - The ItemStack being added to the curative item list
    • writeCurativeItems

      default void writeCurativeItems(CompoundTag nbt)