Interface Chicken

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

public interface Chicken extends Animal
A chicken (minecraft:chicken): it lays an egg every five to ten minutes, flutters down slowly, 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

      Returns how this chicken looks.
      Returns:
      how this chicken looks
      Since:
      0.1.0
    • setVariant

      void setVariant(TypedKey<ChickenVariant> variant)
      Changes how this chicken looks, and so the eggs it lays.
      Parameters:
      variant - the new look
      Since:
      0.1.0
    • soundVariant

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

      void setSoundVariant(TypedKey<ChickenSoundVariant> soundVariant)
      Changes how this chicken sounds.
      Parameters:
      soundVariant - the new sounds
      Since:
      0.1.0
    • egg

      TypedKey<Item> egg()
      Returns the egg this chicken lays., after its variant
      Returns:
      the egg this chicken lays
      Since:
      0.1.0
    • eggTime

      int eggTime()
      Returns in how many ticks this chicken lays its next egg.
      Returns:
      in how many ticks this chicken lays its next egg
      Since:
      0.1.0
    • setEggTime

      void setEggTime(int ticks)
      Changes when this chicken lays its next egg.
      Parameters:
      ticks - in how many ticks
      Since:
      0.1.0
    • isChickenJockey

      boolean isChickenJockey()
      Returns true for the mount of a chicken jockey.: it lays no egg
      Returns:
      true for the mount of a chicken jockey
      Since:
      0.1.0
    • setChickenJockey

      void setChickenJockey(boolean chickenJockey)
      Makes this chicken the mount of a chicken jockey, or a plain chicken again.
      Parameters:
      chickenJockey - true for a mount
      Since:
      0.1.0