public interface Mob extends LivingEntity
Entity.Spigot| Modifier and Type | Method and Description |
|---|---|
int |
getHeadRotationSpeed()
Gets the head rotation speed
|
int |
getMaxHeadPitch()
Gets the max head pitch rotation
|
Pathfinder |
getPathfinder()
Enables access to control the pathing of an Entity
|
LivingEntity |
getTarget()
Gets the current target of this Mob
|
boolean |
isIntelligence()
Get if the mob have intelligence or not
|
void |
lookAt(double x,
double y,
double z)
Instruct this Mob to look at a specific position
Useful when implementing custom mob goals
|
void |
lookAt(double x,
double y,
double z,
float headRotationSpeed,
float maxHeadPitch)
Instruct this Mob to look at a specific position
Useful when implementing custom mob goals
|
void |
lookAt(@NotNull Entity entity)
Instruct this Mob to look at a specific Entity
If a LivingEntity, look at eye location
Useful when implementing custom mob goals
|
void |
lookAt(@NotNull Entity entity,
float headRotationSpeed,
float maxHeadPitch)
Instruct this Mob to look at a specific Entity
If a LivingEntity, look at eye location
Useful when implementing custom mob goals
|
void |
lookAt(Location location)
Instruct this Mob to look at a specific Location
Useful when implementing custom mob goals
|
void |
lookAt(Location location,
float headRotationSpeed,
float maxHeadPitch)
Instruct this Mob to look at a specific Location
Useful when implementing custom mob goals
|
void |
setIntelligence(boolean intelligence)
Allow or not to the mob to have intelligence
|
void |
setTarget(LivingEntity target)
Instructs this Mob to set the specified LivingEntity as its target.
|
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasLineOfSight, hasPotionEffect, isLeashed, removePotionEffect, setArrowsStuck, setCanPickupItems, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealtheject, getCustomName, getEntityId, getEntitySpawnReason, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, setVelocityDirect, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOplaunchProjectile, launchProjectilevoid setTarget(LivingEntity target)
Hostile creatures may attack their target, and friendly creatures may follow their target.
target - New LivingEntity to target, or null to clear the targetLivingEntity getTarget()
Pathfinder getPathfinder()
void lookAt(@NotNull
Location location)
Useful when implementing custom mob goals
location - location to look atvoid lookAt(@NotNull
Location location,
float headRotationSpeed,
float maxHeadPitch)
Useful when implementing custom mob goals
location - location to look atheadRotationSpeed - head rotation speedmaxHeadPitch - max head pitch rotationvoid lookAt(@NotNull
@NotNull Entity entity)
If a LivingEntity, look at eye location
Useful when implementing custom mob goals
entity - entity to look atvoid lookAt(@NotNull
@NotNull Entity entity,
float headRotationSpeed,
float maxHeadPitch)
If a LivingEntity, look at eye location
Useful when implementing custom mob goals
entity - entity to look atheadRotationSpeed - head rotation speedmaxHeadPitch - max head pitch rotationvoid lookAt(double x,
double y,
double z)
Useful when implementing custom mob goals
x - x coordinatey - y coordinatez - z coordinatevoid lookAt(double x,
double y,
double z,
float headRotationSpeed,
float maxHeadPitch)
Useful when implementing custom mob goals
x - x coordinatey - y coordinatez - z coordinateheadRotationSpeed - head rotation speedmaxHeadPitch - max head pitch rotationint getHeadRotationSpeed()
int getMaxHeadPitch()
boolean isIntelligence()
void setIntelligence(boolean intelligence)
intelligence - boolean of the intelligence stateCopyright © 2022. All rights reserved.