Interface Cow

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

@NullMarked public interface Cow extends AbstractCow
Represents a Cow.
  • Method Details

    • getVariant

      Cow.Variant getVariant()
      Gets the variant of this cow.
      Returns:
      the cow variant
    • setVariant

      void setVariant(Cow.Variant variant)
      Sets the variant of this cow.
      Parameters:
      variant - the cow variant