程序包 org.bukkit.entity

# 接口 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.

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static enum`
  `Wither.Head`
  Represents one of the Wither's heads.

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `int`
  `getInvulnerabilityTicks()`
  Returns the wither's current invulnerability ticks.
  `@Nullable LivingEntity`
  `getTarget(@NotNull Wither.Head head)`
  This method will get the target of individual heads `Wither.Head` of the wither.
  `void`
  `setInvulnerabilityTicks(int ticks)`
  Sets the wither's current invulnerability ticks.
  `void`
  `setTarget(@NotNull Wither.Head head, @Nullable LivingEntity target)`
  This method will set the target of individual heads `Wither.Head` of the wither.
  `void`
  `setTarget(@Nullable LivingEntity target)`
  Instructs this Mob to set the specified LivingEntity as its target.

  ### 从接口继承的方法 org.bukkit.attribute.Attributable

  `getAttribute`

  ### 从接口继承的方法 org.bukkit.entity.Boss

  `getBossBar`

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Damageable

  `damage, damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealth`

  ### 从接口继承的方法 org.bukkit.entity.Entity

  `addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport`

  ### 从接口继承的方法 org.bukkit.entity.LivingEntity

  `addPotionEffect, addPotionEffect, addPotionEffects, attack, canBreatheUnderwater, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getCanPickupItems, getCategory, getCollidableExemptions, getDeathSound, getDrinkingSound, getEatingSound, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getFallDamageSound, getFallDamageSoundBig, getFallDamageSoundSmall, getHurtSound, getItemInUse, getItemInUseTicks, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoActionTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlockExact, getTargetBlockExact, hasAI, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isInvisible, isLeashed, isRiptiding, isSleeping, isSwimming, playHurtAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setCanPickupItems, setCollidable, setGliding, setInvisible, setItemInUseTicks, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoActionTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setSwimming, swingMainHand, swingOffHand`

  ### 从接口继承的方法 org.bukkit.loot.Lootable

  `getLootTable, getSeed, setLootTable, setSeed`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.entity.Mob

  `getAmbientSound, getTarget, isAware, setAware`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.projectiles.ProjectileSource

  `launchProjectile, launchProjectile`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### 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(org.bukkit.entity.Wither.Head, org.bukkit.entity.LivingEntity)`

  - ### setTarget

    void setTarget(@NotNull @NotNull Wither.Head head, @Nullable @Nullable LivingEntity target)
    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

    @Nullable @Nullable LivingEntity getTarget(@NotNull @NotNull Wither.Head head)
    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