接口 Wither

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

public interface Wither extends Monster, Boss
代表凋零boss.
  • 方法详细资料

    • setTarget

      void setTarget(@Nullable @Nullable LivingEntity target)
      指示此生物将指定的活体实体设为其目标。

      原文:Instructs this Mob to set the specified LivingEntity as its target.

      敌对生物可能会攻击其目标,友好生物可能会跟随其目标。

      此方法将设置凋零的 中心头颅 的目标.

      原文:This method will set the target of the center head of the wither.

      指定者:
      setTarget 在接口中 Mob
      参数:
      target - 新的目标活体实体,或 null 以清除目标
      另请参阅:
    • setTarget

      此方法将设置凋零的单个头颅 Wither.Head 的目标.

      原文:This method will set the target of individual heads Wither.Head of the wither.

      参数:
      head - 单个头颅
      target - 应被作为目标的实体
    • getTarget

      此方法将获取凋零的单个头颅 Wither.Head 的目标.

      原文:This method will get the target of individual heads Wither.Head of the wither.

      参数:
      head - 单个头颅
      返回:
      被指定头颅作为目标的实体,如果没有目标则返回 null
    • getInvulnerabilityTicks

      int getInvulnerabilityTicks()
      返回凋零当前的无敌刻.

      原文:Returns the wither's current invulnerability ticks.

      返回:
      无敌刻的数量
    • setInvulnerabilityTicks

      void setInvulnerabilityTicks(int ticks)
      设置凋零当前的无敌刻.

      当无敌刻降为 0 时,凋零将触发一次爆炸.

      原文:Sets the wither's current invulnerability ticks. When invulnerability ticks reach 0, the wither will trigger an explosion.

      参数:
      ticks - 无敌刻的数量