Package be.seeseemelk.mockbukkit.entity
Class MobMock
java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.LivingEntityMock
be.seeseemelk.mockbukkit.entity.MobMock
- All Implemented Interfaces:
MessageTarget,net.kyori.adventure.audience.Audience,net.kyori.adventure.pointer.Pointered,net.kyori.adventure.sound.Sound.Emitter,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>,org.bukkit.attribute.Attributable,org.bukkit.command.CommandSender,org.bukkit.entity.Damageable,org.bukkit.entity.Entity,org.bukkit.entity.LivingEntity,org.bukkit.entity.Mob,org.bukkit.loot.Lootable,org.bukkit.metadata.Metadatable,org.bukkit.Nameable,org.bukkit.permissions.Permissible,org.bukkit.permissions.ServerOperator,org.bukkit.persistence.PersistentDataHolder,org.bukkit.projectiles.ProjectileSource
- Direct Known Subclasses:
AmbientMock,CreatureMock,SimpleMobMock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot -
Field Summary
Fields inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
alive, attributes, health -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled immediately after the entity is spawned.int@Nullable org.bukkit.loot.LootTableint@NotNull com.destroystokyo.paper.entity.PathfinderlonggetSeed()@Nullable org.bukkit.entity.LivingEntitybooleanisAware()booleanbooleanvoidlookAt(double x, double y, double z) voidlookAt(double x, double y, double z, float headRotationSpeed, float maxHeadPitch) voidlookAt(@NotNull org.bukkit.entity.Entity entity) voidlookAt(@NotNull org.bukkit.entity.Entity entity, float headRotationSpeed, float maxHeadPitch) voidlookAt(@NotNull org.bukkit.Location location) voidlookAt(@NotNull org.bukkit.Location location, float headRotationSpeed, float maxHeadPitch) voidsetAware(boolean aware) voidsetLeftHanded(boolean leftHanded) voidsetLootTable(@Nullable org.bukkit.loot.LootTable table) voidsetSeed(long seed) voidsetTarget(@Nullable org.bukkit.entity.LivingEntity target) Methods inherited from class be.seeseemelk.mockbukkit.entity.LivingEntityMock
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, damage, damage, getAbsorptionAmount, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getAttribute, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHealth, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaxHealth, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockInfo, getTargetEntity, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isDead, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, isValid, launchProjectile, launchProjectile, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, registerAttribute, remove, removePotionEffect, resetMaxHealth, setAbsorptionAmount, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setGliding, setHealth, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaxHealth, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandMethods inherited from class be.seeseemelk.mockbukkit.entity.EntityMock
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, asHoverEvent, assertLocation, assertNotTeleported, assertTeleported, clearTeleported, customName, customName, eject, equals, fromMobSpawner, getBoundingBox, getChunk, getCustomName, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTeleportCause, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, hashCode, hasMetadata, hasPermission, hasPermission, hasTeleported, isCustomNameVisible, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isSilent, isTicking, isVisualFire, leaveVehicle, lockFreezeTicks, name, nextComponentMessage, nextMessage, playEffect, recalculatePermissions, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setLocation, setMetadata, setName, setOp, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleportMethods inherited from class org.bukkit.command.CommandSender.Spigot
sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.attribute.Attributable
getAttribute, registerAttributeMethods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessageMethods inherited from interface org.bukkit.entity.Damageable
damage, damage, getAbsorptionAmount, getHealth, getMaxHealth, resetMaxHealth, setAbsorptionAmount, setHealth, setMaxHealthMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsyncMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface org.bukkit.entity.LivingEntity
addPotionEffect, addPotionEffect, addPotionEffects, attack, clearActiveItem, getActiveItem, getActivePotionEffects, getArrowCooldown, getArrowsInBody, getArrowsStuck, getBeeStingerCooldown, getBeeStingersInBody, getCanPickupItems, getCategory, getCollidableExemptions, getEyeHeight, getEyeHeight, getEyeLocation, getHandRaised, getHandRaisedTime, getHurtDirection, getItemUseRemainingTime, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getMemory, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getShieldBlockingDelay, getTargetBlock, getTargetBlock, getTargetBlock, getTargetBlockExact, getTargetBlockExact, getTargetBlockFace, getTargetBlockFace, getTargetBlockInfo, getTargetBlockInfo, getTargetEntity, getTargetEntity, getTargetEntityInfo, getTargetEntityInfo, hasAI, hasLineOfSight, hasLineOfSight, hasPotionEffect, isClimbing, isCollidable, isGliding, isHandRaised, isInvisible, isJumping, isLeashed, isRiptiding, isSleeping, isSwimming, playPickupItemAnimation, playPickupItemAnimation, rayTraceBlocks, rayTraceBlocks, removePotionEffect, setAI, setArrowCooldown, setArrowsInBody, setArrowsStuck, setBeeStingerCooldown, setBeeStingersInBody, setCanPickupItems, setCollidable, setGliding, setHurtDirection, setInvisible, setJumping, setKiller, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setMemory, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, setShieldBlockingDelay, setSwimming, swingMainHand, swingOffHandMethods inherited from interface org.bukkit.loot.Lootable
clearLootTable, hasLootTable, setLootTableMethods inherited from interface be.seeseemelk.mockbukkit.command.MessageTarget
assertNoMoreSaid, assertSaidMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.entity.Mob
getEquipmentMethods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainerMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface org.bukkit.projectiles.ProjectileSource
launchProjectile, launchProjectileMethods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
Constructor Details
-
MobMock
-
-
Method Details
-
getPathfinder
@NotNull public @NotNull com.destroystokyo.paper.entity.Pathfinder getPathfinder()- Specified by:
getPathfinderin interfaceorg.bukkit.entity.Mob
-
isInDaylight
public boolean isInDaylight()- Specified by:
isInDaylightin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(@NotNull @NotNull org.bukkit.Location location) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(@NotNull @NotNull org.bukkit.Location location, float headRotationSpeed, float maxHeadPitch) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(@NotNull @NotNull org.bukkit.entity.Entity entity) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(@NotNull @NotNull org.bukkit.entity.Entity entity, float headRotationSpeed, float maxHeadPitch) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(double x, double y, double z) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
lookAt
public void lookAt(double x, double y, double z, float headRotationSpeed, float maxHeadPitch) - Specified by:
lookAtin interfaceorg.bukkit.entity.Mob
-
getHeadRotationSpeed
public int getHeadRotationSpeed()- Specified by:
getHeadRotationSpeedin interfaceorg.bukkit.entity.Mob
-
getMaxHeadPitch
public int getMaxHeadPitch()- Specified by:
getMaxHeadPitchin interfaceorg.bukkit.entity.Mob
-
setTarget
public void setTarget(@Nullable @Nullable org.bukkit.entity.LivingEntity target) - Specified by:
setTargetin interfaceorg.bukkit.entity.Mob
-
getTarget
@Nullable public @Nullable org.bukkit.entity.LivingEntity getTarget()- Specified by:
getTargetin interfaceorg.bukkit.entity.Mob
-
setAware
public void setAware(boolean aware) - Specified by:
setAwarein interfaceorg.bukkit.entity.Mob
-
isAware
public boolean isAware()- Specified by:
isAwarein interfaceorg.bukkit.entity.Mob
-
isLeftHanded
public boolean isLeftHanded()- Specified by:
isLeftHandedin interfaceorg.bukkit.entity.Mob
-
setLeftHanded
public void setLeftHanded(boolean leftHanded) - Specified by:
setLeftHandedin interfaceorg.bukkit.entity.Mob
-
setLootTable
public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table) - Specified by:
setLootTablein interfaceorg.bukkit.loot.Lootable
-
getLootTable
@Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()- Specified by:
getLootTablein interfaceorg.bukkit.loot.Lootable
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceorg.bukkit.loot.Lootable
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceorg.bukkit.loot.Lootable
-
finalizeSpawn
public void finalizeSpawn()Called immediately after the entity is spawned.
-