Class EntityAnimal

All Implemented Interfaces:
EntityAgeable, EntityAsyncPrepare, EntityDamageable, EntityNameable, Metadatable, Cloneable
Direct Known Subclasses:
EntityAmphibiousAnimal, EntityFlyingAnimal, EntitySwimmingAnimal, EntityTameable, EntityWalkingAnimal

public abstract class EntityAnimal extends EntityIntelligent
Author:
MagicDroidX (Nukkit Project)
  • Constructor Details

  • Method Details

    • initEntity

      protected void initEntity()
      Overrides:
      initEntity in class EntityIntelligent
    • saveNBT

      public void saveNBT()
      Overrides:
      saveNBT in class EntityLiving
    • onInteract

      public boolean onInteract(Player player, Item item, Vector3 clickedPos)
      Specified by:
      onInteract in interface EntityNameable
      Overrides:
      onInteract in class EntityCreature
    • sendBreedingAnimation

      protected void sendBreedingAnimation(Item item)
    • isBreedingItem

      public boolean isBreedingItem(Item item)
      可以导致繁殖的喂养物品

      Feeding items that can lead to reproduction.

      Parameters:
      item - 物品
      Returns:
      boolean 是否可以导致繁殖
      Whether it can lead to reproduction
    • getStepHeight

      protected double getStepHeight()
      Overrides:
      getStepHeight in class Entity