接口 Husk

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

public interface Husk extends Zombie
代表一具尸壳 - Zombie的变异体.

原文:Represents a Husk - variant of Zombie.

  • 方法详细资料

    • isConverting

      boolean isConverting()
      Get if this entity is in the process of converting to a Zombie as a result of being underwater.
      指定者:
      isConverting 在接口中 Zombie
      返回:
      conversion status
    • getConversionTime

      int getConversionTime()
      Gets the amount of ticks until this entity will be converted to a Zombie as a result of being underwater. When this reaches 0, the entity will be converted.
      指定者:
      getConversionTime 在接口中 Zombie
      返回:
      conversion time
      抛出:
      IllegalStateException - if isConverting() is false.
    • setConversionTime

      void setConversionTime(int time)
      Sets the amount of ticks until this entity will be converted to a Zombie as a result of being underwater. 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.
      指定者:
      setConversionTime 在接口中 Zombie
      参数:
      time - new conversion time