接口 Zombie

所有超级接口:
Ageable, Attributable, CommandSender, Creature, Damageable, Enemy, Entity, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator
所有已知子接口:
Drowned, Husk, PigZombie, ZombieVillager

public interface Zombie extends Monster, Ageable
代表僵尸.
  • 方法详细资料

    • isBaby

      @Deprecated boolean isBaby()
      已过时。
      另请参阅 Ageable.isAdult()
      获取这个僵尸是否为小僵尸.

      原文: Gets whether the zombie is a baby

      返回:
      这个僵尸是否为小僵尸
    • setBaby

      @Deprecated void setBaby(boolean flag)
      已过时。
      设置这个僵尸是否为小僵尸.

      原文: Sets whether the zombie is a baby

      参数:
      flag - 这个僵尸是否为小僵尸
    • isVillager

      @Deprecated boolean isVillager()
      已过时。
      检查 instanceof ZombieVillager 的是与否.
      获取这个僵尸是否为村民僵尸.

      原文: Gets whether the zombie is a villager

      返回:
      这个僵尸是否为村民僵尸
    • setVillager

      @Deprecated @Contract("_ -> fail") void setVillager(boolean flag)
      已过时。
      must spawn ZombieVillager.
      参数:
      flag - flag
    • setVillagerProfession

      @Deprecated @Contract("_ -> fail") void setVillagerProfession(Villager.Profession profession)
      已过时。
      参数:
      profession - profession
      另请参阅:
    • getVillagerProfession

      @Deprecated @Nullable @Contract("-> null") Villager.Profession getVillagerProfession()
      已过时。
      返回:
      profession
      另请参阅:
    • isConverting

      boolean isConverting()
      Get if this entity is in the process of converting to a Drowned as a result of being underwater.
      返回:
      conversion status
    • getConversionTime

      int getConversionTime()
      Gets the amount of ticks until this entity will be converted to a Drowned as a result of being underwater. When this reaches 0, the entity will be converted.
      返回:
      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 Drowned 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.
      参数:
      time - new conversion time
    • canBreakDoors

      boolean canBreakDoors()
      获得这个僵尸是否能破坏门.

      原文: Gets whether this zombie can break doors

      返回:
      僵尸是否能破坏门
    • setCanBreakDoors

      void setCanBreakDoors(boolean flag)
      设置僵尸是否能破坏门. 当实体是溺尸时将被忽略.当实体破坏门时也会停止破坏.

      原文: Sets whether this zombie can break doors This will be ignored if the entity is a Drowned. Will also stop the action if the entity is currently breaking a door.

      参数:
      flag - Whether this zombie can break doors