Interface Enderman

All Superinterfaces:
Attributable, Audience, CommandSender, Creature, Damageable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Lootable, Metadatable, Mob, Monster, Nameable, Permissible, PersistentDataHolder, ProjectileSource, ServerOperator

public interface Enderman extends Monster
Represents an Enderman.
  • Method Details

    • teleportRandomly

      boolean teleportRandomly()
      Try to teleport the enderman to a random nearby location. May conditionally fail if the random location was not valid
      Returns:
      If the enderman teleported successfully or not
    • getCarriedMaterial

      @NotNull @NotNull MaterialData getCarriedMaterial()
      Gets the id and data of the block that the Enderman is carrying.
      Returns:
      MaterialData containing the id and data of the block
    • setCarriedMaterial

      void setCarriedMaterial(@NotNull @NotNull MaterialData material)
      Sets the id and data of the block that the Enderman is carrying.
      Parameters:
      material - data to set the carried block to
    • getCarriedBlock

      @Nullable @Nullable BlockData getCarriedBlock()
      Gets the data of the block that the Enderman is carrying.
      Returns:
      BlockData containing the carried block, or null if none
    • setCarriedBlock

      void setCarriedBlock(@Nullable @Nullable BlockData blockData)
      Sets the data of the block that the Enderman is carrying.
      Parameters:
      blockData - data to set the carried block to, or null to remove