Interface MushroomCow

All Superinterfaces:
Ageable, Animals, Attributable, Audience, Breedable, CommandSender, Cow, Creature, Damageable, Entity, Frictional, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Nameable, Permissible, PersistentDataHolder, Pointered, ProjectileSource, ServerOperator, Sound.Emitter

public interface MushroomCow extends Cow
Represents a mushroom Cow
  • Method Details

    • getVariant

      Get the variant of this cow.
      Returns:
      cow variant
    • setVariant

      void setVariant(@NotNull @NotNull MushroomCow.Variant variant)
      Set the variant of this cow.
      Parameters:
      variant - cow variant
    • getStewEffectDuration

      int getStewEffectDuration()
      Gets how long the effect applied to stew from this mushroom cow is.
      Returns:
      duration of the effect (in ticks)
    • setStewEffectDuration

      void setStewEffectDuration(int duration)
      Sets how long the effect applied to stew from this mushroom cow is.
      Parameters:
      duration - duration of the effect (in ticks)
    • getStewEffectType

      @Nullable PotionEffectType getStewEffectType()
      Gets the type of effect applied to stew from this mushroom cow is.
      Returns:
      effect type, or null if an effect is currently not set
    • setStewEffect

      void setStewEffect(@Nullable PotionEffectType type)
      Sets the type of effect applied to stew from this mushroom cow is.
      Parameters:
      type - new effect type or null if this cow does not give effects