Interface Cow

All Superinterfaces:
Ageable, Animal, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider

public interface Cow extends Animal
A cow (minecraft:cow): it gives milk to a bucket, and looks and sounds after the biome it spawned in.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Method Details

    • variant

      TypedKey<CowVariant> variant()
      Returns how this cow looks.
      Returns:
      how this cow looks
      Since:
      0.1.0
    • setVariant

      void setVariant(TypedKey<CowVariant> variant)
      Changes how this cow looks.
      Parameters:
      variant - the new look
      Since:
      0.1.0
    • soundVariant

      TypedKey<CowSoundVariant> soundVariant()
      Returns how this cow sounds.
      Returns:
      how this cow sounds
      Since:
      0.1.0
    • setSoundVariant

      void setSoundVariant(TypedKey<CowSoundVariant> soundVariant)
      Changes how this cow sounds.
      Parameters:
      soundVariant - the new sounds
      Since:
      0.1.0