Interface Enderman
- All Superinterfaces:
Angerable, Entity, HoverEventSource<HoverEvent.ShowEntity>, LivingEntity, Mob, SchedulerSource, Sound.Emitter, Sound.Source.Provider
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 Summary
Modifier and TypeMethodDescriptionReturns the block this enderman carries, empty when its hands are empty.booleanReturnstrueonce a player provoked this enderman by staring at it.booleanisBeingStaredBy(Player player) Returnstrueif a player stares at the eyes of this enderman.booleanReturnstruewhile this enderman has a target.voidsetCarriedBlock(@Nullable BlockData block) Makes this enderman carry a block, or none.booleanTries 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 theminecraft:enderman_does_not_teleport_totag.booleanteleportTowards(Entity entity) Tries to teleport this enderman closer to an entity, as it does to a player it goes after that stays far away.Methods inherited from interface Angerable
angryAt, isAngry, isAngryAt, remainingAngerTicks, setAngryAt, stopBeingAngryMethods inherited from interface Entity
chunk, displayName, entityId, isRemoved, location, remove, server, teleport, teleport, teleport, type, uuid, worldMethods inherited from interface HoverEventSource
asHoverEvent, asHoverEventMethods inherited from interface LivingEntity
absorptionAmount, activeEffects, addEffect, armor, armorToughness, clearEffects, damage, effect, equipment, fireTicks, hasEffect, headYaw, heal, health, isAlive, isDead, kill, knockbackResistance, maxHealth, removeEffect, setAbsorptionAmount, setFireTicks, setHeadYaw, setHealthMethods inherited from interface Mob
attackDamage, behaviour, behaviours, definition, distanceSqTo, followRange, goals, hasLineOfSightTo, height, lookAt, lookAt, movementSpeed, navigateTo, navigation, nearestPlayer, onGround, playSound, setFollowRange, setMoveSpeed, setTarget, setVelocity, target, velocityX, velocityY, velocityZ, widthMethods inherited from interface SchedulerSource
execute, execute, executeDelayed, executeDelayed, isOwnedByCurrentThreadMethods inherited from interface Sound.Source.Provider
soundSource
-
Method Details
-
carriedBlock
-
setCarriedBlock
-
isScreaming
boolean isScreaming()Returnstruewhile this enderman has a target.: it then opens its mouth and screams- Returns:
truewhile this enderman has a target- Since:
- 0.1.0
-
hasBeenStaredAt
boolean hasBeenStaredAt()Returnstrueonce a player provoked this enderman by staring at it., until it gives up its target- Returns:
trueonce a player provoked this enderman by staring at it- Since:
- 0.1.0
-
isBeingStaredBy
Returnstrueif a player stares at the eyes of this enderman., unless the player wears an item of theminecraft:gaze_disguise_equipmenttag, such as a carved pumpkin- Parameters:
player- the player- Returns:
trueif 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 theminecraft:enderman_does_not_teleport_totag.- Returns:
trueif it teleported- Since:
- 0.1.0
-
teleportTowards
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:
trueif it teleported- Since:
- 0.1.0
-