Class EntityOcelot

All Implemented Interfaces:
LogicalUtils, EntityAgeable, EntityAsyncPrepare, EntityDamageable, EntityNameable, Metadatable, Cloneable

public class EntityOcelot extends EntityWalkingAnimal
Author:
BeYkeRYkt (Nukkit Project)
  • Field Details

  • Constructor Details

  • Method Details

    • getWidth

      public float getWidth()
      Overrides:
      getWidth in class Entity
    • getHeight

      public float getHeight()
      Overrides:
      getHeight in class Entity
    • getOriginalName

      @PowerNukkitOnly @Since("1.5.1.0-PN") public String getOriginalName()
      Description copied from class: Entity
      The name that English name of the type of this entity.
      Overrides:
      getOriginalName in class Entity
    • getNetworkId

      public int getNetworkId()
      Specified by:
      getNetworkId in class Entity
    • initEntity

      public void initEntity()
      Overrides:
      initEntity in class EntityAnimal
    • isBreedingItem

      public boolean isBreedingItem(Item item)
      Description copied from class: EntityAnimal
      可以导致繁殖的喂养物品

      Feeding items that can lead to reproduction.

      Overrides:
      isBreedingItem in class EntityAnimal
      Parameters:
      item - 物品
      Returns:
      boolean 是否可以导致繁殖
      Whether it can lead to reproduction