All Implemented Interfaces:
Placeable
Direct Known Subclasses:
Medicine, Vitamins

public abstract class MedicalSupply<T extends ItemHandler> extends SimpleSlimefunItem<T>
  • Constructor Details

    • MedicalSupply

      @ParametersAreNonnullByDefault protected MedicalSupply(ItemGroup itemGroup, int healAmount, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • getCuredEffects

      @Nonnull public Set<org.bukkit.potion.PotionEffectType> getCuredEffects()
      This returns the PotionEffects cured from this MedicalSupply.
      Returns:
      An immutable Set of cured PotionEffects
    • clearNegativeEffects

      public void clearNegativeEffects(@Nonnull org.bukkit.entity.LivingEntity n)
      This method clears any negative PotionEffect from the given LivingEntity.
      Parameters:
      n - The LivingEntity to clear the effects from.
    • heal

      public void heal(@Nonnull org.bukkit.entity.LivingEntity n)
      This method heals the given LivingEntity by the amount provided via the constructor.
      Parameters:
      n - The LivingEntity to heal