接口 Enderman

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

public interface Enderman extends Monster
代表末影人.
  • 方法详细资料

    • 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移除末影人手持的方块