接口 ZombieVillager

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

public interface ZombieVillager extends Zombie
Represents a Zombie which was once a Villager.
  • 方法详细资料

    • setVillagerProfession

      void setVillagerProfession(@Nullable Villager.Profession profession)
      Sets the villager profession of this zombie.
      指定者:
      setVillagerProfession 在接口中 Zombie
      参数:
      profession - profession
      另请参阅:
    • getVillagerProfession

      @Nullable Villager.Profession getVillagerProfession()
      Returns the villager profession of this zombie.
      指定者:
      getVillagerProfession 在接口中 Zombie
      返回:
      the profession or null
      另请参阅:
    • getVillagerType

      @NotNull Villager.Type getVillagerType()
      Gets the current type of this villager.
      返回:
      Current type.
    • setVillagerType

      void setVillagerType(@NotNull Villager.Type type)
      Sets the new type of this villager.
      参数:
      type - New type.
    • isConverting

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

      int getConversionTime()
      Gets the amount of ticks until this entity will be converted to a Villager as a result of being cured. 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 Villager as a result of being cured. 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
    • getConversionPlayer

      @Nullable @Nullable OfflinePlayer getConversionPlayer()
      Gets the player who initiated the conversion.
      返回:
      the player, or null if the player is unknown or the entity isn't converting currently
    • setConversionPlayer

      void setConversionPlayer(@Nullable @Nullable OfflinePlayer conversionPlayer)
      Sets the player who initiated the conversion.

      This has no effect if this entity isn't converting currently.

      参数:
      conversionPlayer - the player