接口 IForgeMobEffect

所有已知实现类:
AbsorptionMobEffect, BadOmenMobEffect, HealOrHarmMobEffect, HungerMobEffect, InfestedMobEffect, InstantenousMobEffect, MobEffect, OozingMobEffect, PoisonMobEffect, RaidOmenMobEffect, RegenerationMobEffect, SaturationMobEffect, WeavingMobEffect, WindChargedMobEffect, WitherMobEffect

public interface IForgeMobEffect
  • 方法详细资料

    • 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
      返回:
      A list of items that can cure this Potion
      另请参阅:
      • 引用无效
        MobEffectInstance#getCurativeItems()
    • getSortOrder

      default int getSortOrder(MobEffectInstance effectInstance)
      Used for determining PotionEffect sort order in GUIs. Defaults to the PotionEffect's liquid color.
      参数:
      effectInstance - the PotionEffect instance containing the potion
      返回:
      a value used to sort PotionEffects in GUIs