Interface Enderman

All Superinterfaces:
Angerable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider

public interface Enderman extends Angerable
An enderman (minecraft:enderman): it leaves everyone alone until a player stares at its eyes or hurts it, then screams and teleports around them. It goes after the endermites, teleports away from water, projectiles and the open sky in daylight, and picks up and puts down some blocks when mobs may change the world.

Like every entity, change it from the region thread owning its chunk.

Since:
0.1.0
  • Method Details

    • carriedBlock

      Optional<BlockData> carriedBlock()
      Returns the block this enderman carries, empty when its hands are empty.
      Returns:
      the block this enderman carries, empty when its hands are empty
      Since:
      0.1.0
    • setCarriedBlock

      void setCarriedBlock(@Nullable BlockData block)
      Makes this enderman carry a block, or none. It drops the block it carries when it dies, and does not despawn while it carries one.
      Parameters:
      block - the block, null or air for none
      Since:
      0.1.0
    • isScreaming

      boolean isScreaming()
      Returns true while this enderman has a target.: it then opens its mouth and screams
      Returns:
      true while this enderman has a target
      Since:
      0.1.0
    • hasBeenStaredAt

      boolean hasBeenStaredAt()
      Returns true once a player provoked this enderman by staring at it., until it gives up its target
      Returns:
      true once a player provoked this enderman by staring at it
      Since:
      0.1.0
    • isBeingStaredBy

      boolean isBeingStaredBy(Player player)
      Returns true if a player stares at the eyes of this enderman., unless the player wears an item of the minecraft:gaze_disguise_equipment tag, such as a carved pumpkin
      Parameters:
      player - the player
      Returns:
      true if a player stares at the eyes of this enderman
      Since:
      0.1.0
    • teleportRandomly

      boolean teleportRandomly()
      Tries to teleport this enderman somewhere within 32 blocks across and up or down, as it does when hurt: it lands on solid ground, out of water and away from the blocks of the minecraft:enderman_does_not_teleport_to tag.
      Returns:
      true if it teleported
      Since:
      0.1.0
    • teleportTowards

      boolean teleportTowards(Entity entity)
      Tries to teleport this enderman closer to an entity, as it does to a player it goes after that stays far away.
      Parameters:
      entity - the entity to get close to
      Returns:
      true if it teleported
      Since:
      0.1.0