接口 Wither

所有超级接口:
Attributable, Boss, CommandSender, Creature, Damageable, Enemy, Entity, 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.

      Hostile creatures may attack their target, and friendly creatures may follow their target.

      This method will set the target of the center head of the wither.

      指定者:
      setTarget 在接口中 Mob
      参数:
      target - New LivingEntity to target, or null to clear the target
      另请参阅:
    • setTarget

      This method will set the target of individual heads Wither.Head of the wither.
      参数:
      head - the individual head
      target - the entity that should be targeted
    • getTarget

      This method will get the target of individual heads Wither.Head of the wither.
      参数:
      head - the individual head
      返回:
      the entity targeted by the given head, or null if none is targeted
    • getInvulnerabilityTicks

      int getInvulnerabilityTicks()
      Returns the wither's current invulnerability ticks.
      返回:
      amount of invulnerability ticks
    • setInvulnerabilityTicks

      void setInvulnerabilityTicks(int ticks)
      Sets the wither's current invulnerability ticks. When invulnerability ticks reach 0, the wither will trigger an explosion.
      参数:
      ticks - amount of invulnerability ticks