Interface Chicken

All Superinterfaces:
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 Chicken extends Animals
Represents a Chicken.
  • Method Details

    • getVariant

      Chicken.Variant getVariant()
      Gets the variant of this chicken.
      Returns:
      the chicken variant
    • setVariant

      void setVariant(Chicken.Variant variant)
      Sets the variant of this chicken.
      Parameters:
      variant - the chicken variant
    • isChickenJockey

      boolean isChickenJockey()
      Gets if this chicken was spawned as a chicken jockey.
      Returns:
      is chicken jockey
    • setIsChickenJockey

      void setIsChickenJockey(boolean isChickenJockey)
      Sets if this chicken was spawned as a chicken jockey.
      Parameters:
      isChickenJockey - is chicken jockey
    • getEggLayTime

      int getEggLayTime()
      Gets the number of ticks till this chicken lays an egg.
      Returns:
      ticks till the chicken lays an egg
    • setEggLayTime

      void setEggLayTime(int eggLayTime)
      Sets the number of ticks till this chicken lays an egg.
      Parameters:
      eggLayTime - ticks till the chicken lays an egg