Class MobMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
All Implemented Interfaces:
MessageTarget, io.papermc.paper.entity.Frictional, 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, FlyingMock, SimpleMobMock, SlimeMock

public abstract class MobMock extends LivingEntityMock implements org.bukkit.entity.Mob
Mock implementation of a Mob.
See Also:
  • Constructor Details

    • MobMock

      protected MobMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new MobMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • getPathfinder

      @NotNull public @NotNull com.destroystokyo.paper.entity.Pathfinder getPathfinder()
      Specified by:
      getPathfinder in interface org.bukkit.entity.Mob
    • isInDaylight

      public boolean isInDaylight()
      Specified by:
      isInDaylight in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(@NotNull @NotNull org.bukkit.Location location)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(@NotNull @NotNull org.bukkit.Location location, float headRotationSpeed, float maxHeadPitch)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(@NotNull @NotNull org.bukkit.entity.Entity entity, float headRotationSpeed, float maxHeadPitch)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(double x, double y, double z)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • lookAt

      public void lookAt(double x, double y, double z, float headRotationSpeed, float maxHeadPitch)
      Specified by:
      lookAt in interface org.bukkit.entity.Mob
    • getHeadRotationSpeed

      public int getHeadRotationSpeed()
      Specified by:
      getHeadRotationSpeed in interface org.bukkit.entity.Mob
    • getMaxHeadPitch

      public int getMaxHeadPitch()
      Specified by:
      getMaxHeadPitch in interface org.bukkit.entity.Mob
    • setTarget

      public void setTarget(@Nullable @Nullable org.bukkit.entity.LivingEntity target)
      Specified by:
      setTarget in interface org.bukkit.entity.Mob
    • getTarget

      @Nullable public @Nullable org.bukkit.entity.LivingEntity getTarget()
      Specified by:
      getTarget in interface org.bukkit.entity.Mob
    • setAware

      public void setAware(boolean aware)
      Specified by:
      setAware in interface org.bukkit.entity.Mob
    • isAware

      public boolean isAware()
      Specified by:
      isAware in interface org.bukkit.entity.Mob
    • getAmbientSound

      @Nullable public @Nullable org.bukkit.Sound getAmbientSound()
      Specified by:
      getAmbientSound in interface org.bukkit.entity.Mob
    • isLeftHanded

      public boolean isLeftHanded()
      Specified by:
      isLeftHanded in interface org.bukkit.entity.Mob
    • setLeftHanded

      public void setLeftHanded(boolean leftHanded)
      Specified by:
      setLeftHanded in interface org.bukkit.entity.Mob
    • setLootTable

      public void setLootTable(@Nullable @Nullable org.bukkit.loot.LootTable table)
      Specified by:
      setLootTable in interface org.bukkit.loot.Lootable
    • getLootTable

      @Nullable public @Nullable org.bukkit.loot.LootTable getLootTable()
      Specified by:
      getLootTable in interface org.bukkit.loot.Lootable
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface org.bukkit.loot.Lootable
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface org.bukkit.loot.Lootable
    • finalizeSpawn

      public void finalizeSpawn()
      Called immediately after the entity is spawned.
    • getPossibleExperienceReward

      public int getPossibleExperienceReward()
      Specified by:
      getPossibleExperienceReward in interface org.bukkit.entity.Mob
    • isAggressive

      public boolean isAggressive()
      Specified by:
      isAggressive in interface org.bukkit.entity.Mob
    • setAggressive

      public void setAggressive(boolean aggressive)
      Specified by:
      setAggressive in interface org.bukkit.entity.Mob