Interface Rabbit

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

public interface Rabbit extends Animals
  • Method Details

    • getRabbitType

      @NotNull @NotNull Rabbit.Type getRabbitType()
      Returns:
      The type of rabbit.
    • setRabbitType

      void setRabbitType(@NotNull @NotNull Rabbit.Type type)
      Parameters:
      type - Sets the type of rabbit for this entity.
    • setMoreCarrotTicks

      void setMoreCarrotTicks(int ticks)
      Sets how many ticks this rabbit will wait until trying to find more carrots.
      Parameters:
      ticks - ticks
    • getMoreCarrotTicks

      int getMoreCarrotTicks()
      Returns how many ticks this rabbit will wait until trying to find more carrots.
      Returns:
      ticks