Attributable
, CommandSender
, Damageable
, Entity
, LivingEntity
, Lootable
, Metadatable
, Nameable
, Permissible
, ProjectileSource
, ServerOperator
AbstractHorse
, Ageable
, Ambient
, Animals
, Bat
, Blaze
, CaveSpider
, ChestedHorse
, Chicken
, Cod
, Cow
, Creature
, Creeper
, Dolphin
, Donkey
, Drowned
, ElderGuardian
, EnderDragon
, Enderman
, Endermite
, Evoker
, Fish
, Flying
, Ghast
, Giant
, Golem
, Guardian
, Horse
, Husk
, Illager
, Illusioner
, IronGolem
, Llama
, MagmaCube
, Monster
, Mule
, MushroomCow
, NPC
, Ocelot
, Parrot
, Phantom
, Pig
, PigZombie
, PolarBear
, PufferFish
, Rabbit
, RangedEntity
, Salmon
, Sheep
, Shulker
, Silverfish
, Skeleton
, SkeletonHorse
, Slime
, Snowman
, Spellcaster
, Spider
, Squid
, Stray
, TropicalFish
, Turtle
, Vex
, Villager
, Vindicator
, WaterMob
, Witch
, Wither
, WitherSkeleton
, Wolf
, Zombie
, ZombieHorse
, ZombieVillager
public interface Mob extends LivingEntity, Lootable
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
Pathfinder |
getPathfinder() |
Enables access to control the pathing of an Entity
|
LivingEntity |
getTarget() |
Gets the current target of this Mob
|
boolean |
isInDaylight() |
Check if this mob is exposed to daylight
|
void |
setTarget(LivingEntity target) |
Instructs this Mob to set the specified LivingEntity as its target.
|
getAttribute
getName, sendMessage, sendMessage, sendMessage, sendMessage
damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
addPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
addPotionEffect, addPotionEffect, addPotionEffects, getActiveItem, getActivePotionEffects, getArrowsStuck, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaisedTime, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isHandRaised, isLeashed, isRiptiding, isSwimming, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowsStuck, setCanPickupItems, setCollidable, setGliding, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming
clearLootTable, getLootTable, getSeed, hasLootTable, setLootTable, setLootTable, setSeed
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
launchProjectile, launchProjectile
isOp, setOp
@NotNull Pathfinder getPathfinder()
boolean isInDaylight()
void setTarget(@Nullable 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 target@Nullable LivingEntity getTarget()
Copyright © 2020. All rights reserved.