Class EntityTameable

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

@Deprecated @DeprecationDetails(since="1.6.0.0-PNX", reason="EntityTameable is moved to interface,which is better to use", replaceWith="interface EntityTamable") public abstract class EntityTameable extends EntityAnimal implements EntityOwnable
Deprecated.
Author:
BeYkeRYkt (Nukkit Project)
  • Field Details

  • Constructor Details

  • Method Details

    • initEntity

      protected void initEntity()
      Deprecated.
      Overrides:
      initEntity in class EntityAnimal
    • saveNBT

      public void saveNBT()
      Deprecated.
      Overrides:
      saveNBT in class EntityAnimal
    • getOwnerName

      public String getOwnerName()
      Deprecated.
      Specified by:
      getOwnerName in interface EntityOwnable
      Returns:
      这个实体主人的名字
      The name of the owner of this entity
    • setOwnerName

      public void setOwnerName(String playerName)
      Deprecated.
      Description copied from interface: EntityOwnable
      设置这个实体主人的名字,相当于设置这个实体的主人
      The name of the owner of this entity,Equivalent to set the owner of this entity.
      Specified by:
      setOwnerName in interface EntityOwnable
    • getOwner

      public Player getOwner()
      Deprecated.
      Specified by:
      getOwner in interface EntityOwnable
      Returns:
      获得这个实体的主人Player实例
      Get the instance that the owner of entity.
    • isTamed

      public boolean isTamed()
      Deprecated.
    • setTamed

      public void setTamed(boolean flag)
      Deprecated.
    • isSitting

      public boolean isSitting()
      Deprecated.
    • setSitting

      public void setSitting(boolean flag)
      Deprecated.