Interface IForgeMobEffect

All Known Implementing Classes:
AbsoptionMobEffect, AttackDamageMobEffect, HealthBoostMobEffect, InstantenousMobEffect, MobEffect

public interface IForgeMobEffect
  • Method Details

    • self

      private MobEffect self()
    • getCurativeItems

      default List<ItemStack> getCurativeItems()
      Get a fresh list of items that can cure this Potion. All new PotionEffects created from this Potion will call this to initialize the default curative items
      Returns:
      A list of items that can cure this Potion
      See Also:
      MobEffectInstance.getCurativeItems()
    • getGuiSortColor

      default int getGuiSortColor(MobEffectInstance potionEffect)
      Used for determining PotionEffect sort order in GUIs. Defaults to the PotionEffect's liquid color.
      Parameters:
      potionEffect - the PotionEffect instance containing the potion
      Returns:
      a value used to sort PotionEffects in GUIs