接口 Skeleton

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

public interface Skeleton extends AbstractSkeleton
代表骷髅.

This interface only represents the normal skeleton type on the server. Other skeleton-like entities, such as the WitherSkeleton or the Stray are not related to this type.

  • 方法详细资料

    • isConverting

      boolean isConverting()
      Computes whether or not this skeleton is currently in the process of converting to a Stray due to it being frozen by powdered snow.
      返回:
      whether or not the skeleton is converting to a stray.
    • getConversionTime

      int getConversionTime()
      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.

      返回:
      the conversion time left represented in ticks.
      抛出:
      IllegalStateException - if isConverting() is false.
    • setConversionTime

      void setConversionTime(int time)
      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 - the new conversion time left before the conversion in ticks.