Class EntityTameable

All Implemented Interfaces:
EntityControlUtils, LogicalUtils, EntityAgeable, EntityAsyncPrepare, EntityComponent, 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 EntityOwnable") public abstract class EntityTameable extends EntityAnimal implements EntityOwnable
Deprecated.
Author:
BeYkeRYkt (Nukkit Project)
  • Field Details

  • Constructor Details

  • Method Details

    • initEntity

      protected void initEntity()
      Deprecated.
      Description copied from class: Entity
      实体初始化顺序,先初始化Entity类字段->Entity构造函数->进入init方法->调用initEntity方法->子类字段初始化->子类构造函数

      用于初始化实体的NBT和实体字段的方法

      Entity initialization order, first initialize the Entity class field->Entity constructor->Enter the init method->Call the init Entity method-> subclass field initialization-> subclass constructor

      The method used to initialize the NBT and entity fields of the entity

      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
    • setOwnerName

      public void setOwnerName(@NotNull String playerName)
      Deprecated.
      Specified by:
      setOwnerName in interface EntityOwnable
    • getOwner

      public Player getOwner()
      Deprecated.
      Specified by:
      getOwner in interface EntityOwnable
    • isTamed

      public boolean isTamed()
      Deprecated.
    • setTamed

      public void setTamed(boolean flag)
      Deprecated.
    • isSitting

      public boolean isSitting()
      Deprecated.
    • setSitting

      public void setSitting(boolean flag)
      Deprecated.