接口 MushroomCow

所有超级接口:
Ageable, Animals, Attributable, Breedable, CommandSender, Cow, Creature, Damageable, Entity, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface MushroomCow extends Cow
代表哞菇( Cow ).
  • 方法详细资料

    • hasEffectsForNextStew

      boolean hasEffectsForNextStew()
      Checks for the presence of custom potion effects to be applied to the next suspicious stew received from milking this MushroomCow.
      返回:
      true if custom potion effects are applied to the stew
    • getEffectsForNextStew

      @NotNull @NotNull List<PotionEffect> getEffectsForNextStew()
      Gets an immutable list containing all custom potion effects applied to the next suspicious stew received from milking this MushroomCow.

      Plugins should check that hasCustomEffects() returns true before calling this method.

      返回:
      an immutable list of custom potion effects
    • addEffectToNextStew

      boolean addEffectToNextStew(@NotNull @NotNull PotionEffect effect, boolean overwrite)
      Adds a custom potion effect to be applied to the next suspicious stew received from milking this MushroomCow.
      参数:
      effect - the potion effect to add
      overwrite - true if any existing effect of the same type should be overwritten
      返回:
      true if the effects to be applied to the suspicious stew changed as a result of this call
    • removeEffectFromNextStew

      boolean removeEffectFromNextStew(@NotNull @NotNull PotionEffectType type)
      Removes a custom potion effect from being applied to the next suspicious stew received from milking this MushroomCow.
      参数:
      type - the potion effect type to remove
      返回:
      true if the effects to be applied to the suspicious stew changed as a result of this call
    • hasEffectForNextStew

      boolean hasEffectForNextStew(@NotNull @NotNull PotionEffectType type)
      Checks for a specific custom potion effect type to be applied to the next suspicious stew received from milking this MushroomCow.
      参数:
      type - the potion effect type to check for
      返回:
      true if the suspicious stew to be generated has this effect
    • clearEffectsForNextStew

      void clearEffectsForNextStew()
      Removes all custom potion effects to be applied to the next suspicious stew received from milking this MushroomCow.
    • getVariant

      Get the variant of this cow.
      返回:
      cow variant
    • setVariant

      void setVariant(@NotNull @NotNull MushroomCow.Variant variant)
      Set the variant of this cow.
      参数:
      variant - cow variant