程序包 org.bukkit.entity

# 接口 Enderman

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

public interface Enderman extends Monster
代表末影人.

- ## 嵌套类概要

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

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@Nullable BlockData`
  `getCarriedBlock()`
  获取末影人手持的方块的方块数据对象.
  `@NotNull MaterialData`
  `getCarriedMaterial()`
  获取末影人手持的方块的id和数据.
  `void`
  `setCarriedBlock(@Nullable BlockData blockData)`
  设置末影人手持的方块的方块数据对象.
  `void`
  `setCarriedMaterial(@NotNull MaterialData material)`
  设置末影人手持的方块的id和数据.
  `boolean`
  `teleport()`
  Randomly teleports the Enderman in a 64x64x64 block cuboid region.
  `boolean`
  `teleportTowards(@NotNull Entity entity)`
  Randomly teleports the Enderman towards the given `entity`.

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

  `getAttribute`

  ### 从接口继承的方法 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, setTarget`

  ### 从接口继承的方法 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`

- ## 方法详细资料

  - ### getCarriedMaterial

    @NotNull @NotNull MaterialData getCarriedMaterial()
    获取末影人手持的方块的id和数据.

    原文:Gets the id and data of the block that the Enderman is carrying.

    返回:
      包含方块的id和数据的MaterialData

  - ### setCarriedMaterial

    void setCarriedMaterial(@NotNull @NotNull MaterialData material)
    设置末影人手持的方块的id和数据.

    原文:Sets the id and data of the block that the Enderman is carrying.

    参数:
      `material` - 要设置的手持方块的数据

  - ### getCarriedBlock

    @Nullable @Nullable BlockData getCarriedBlock()
    获取末影人手持的方块的方块数据对象.

    原文:Gets the data of the block that the Enderman is carrying.

    返回:
      包含该方块数据的BlockData对象, 如果没有手持方块返回null

  - ### setCarriedBlock

    void setCarriedBlock(@Nullable @Nullable BlockData blockData)
    设置末影人手持的方块的方块数据对象.

    原文:Sets the data of the block that the Enderman is carrying.

    参数:
      `blockData` - 为该方块设置的BlockData对象, 设为null移除末影人手持的方块

  - ### teleport

    boolean teleport()
    Randomly teleports the Enderman in a 64x64x64 block cuboid region.

    If the randomly selected point is in the ground, the point is moved 1 block down until air is found or until it goes under `WorldInfo.getMinHeight()`.

    This method will return false if this Enderman is not alive, or if the teleport location was obstructed, or if the teleport location is in water.

    返回:
      true if the teleport succeeded.

  - ### teleportTowards

    boolean teleportTowards(@NotNull @NotNull Entity entity)
    Randomly teleports the Enderman towards the given `entity`.

    The point is selected by drawing a vector between this enderman and the given `entity`. That vector's length is set to 16 blocks. That point is then moved within a 8x8x8 cuboid region. If the randomly selected point is in the ground, the point is moved 1 block down until air is found or until it goes under `WorldInfo.getMinHeight()`.

    This method will return false if this Enderman is not alive, or if the teleport location was obstructed, or if the teleport location is in water.

    参数:
      `entity` - The entity to teleport towards.
    返回:
      true if the teleport succeeded.