接口 Skeleton

所有超级接口:
AbstractSkeleton, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, Leashable, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Skeleton extends AbstractSkeleton
代表骷髅.

此接口仅代表服务器上的普通骷髅类型. 其他类骷髅实体, 如 WitherSkeleton 或 Stray 与此类型无关.

  • 方法详细资料

    • isConverting

      boolean isConverting()
      计算此骷髅是否正在因被细雪冻结而转化为 Stray.

      原文: Computes whether or not this skeleton is currently in the process of converting to a Stray due to it being frozen by powdered snow.

      返回:
      此骷髅是否正在转化为流浪者
    • getConversionTime

      int getConversionTime()
      获取此实体因被细雪方块冻结而转化为流浪者所需的剩余 tick 数.

      当此值降为 0 时, 该实体将被转化.

      原文: Gets the amount of ticks until this entity will be converted to a stray as a result of being frozen by a powdered snow block.

      When this reaches 0, the entity will be converted.

      返回:
      以 tick 为单位的剩余转化时间
      抛出:
      IllegalStateException - 如果 isConverting() 返回 false
    • setConversionTime

      void setConversionTime(int time)
      设置此实体因被细雪方块冻结而转化为流浪者所需的剩余 tick 数.

      当此值降为 0 时, 该实体将被转化. 小于 0 的值将停止当前的转化过程且不会转化当前实体.

      原文: Sets the amount of ticks until this entity will be converted to a stray as a result of being frozen by a powdered snow block.

      When this reaches 0, the entity will be converted. A value of less than 0 will stop the current conversion process without converting the current entity.

      参数:
      time - 以 tick 为单位的新转化剩余时间