Class AbstractProjectileMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.AbstractProjectileMock
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.command.CommandSender, org.bukkit.entity.Entity, org.bukkit.entity.Projectile, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
AbstractArrowMock, ProjectileMock

public abstract class AbstractProjectileMock extends EntityMock implements org.bukkit.entity.Projectile
Mock implementation of a Projectile. Not everything that extends AbstractProjectileMock extends ProjectileMock.
See Also:
  • Constructor Details

    • AbstractProjectileMock

      protected AbstractProjectileMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new AbstractProjectileMock 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

    • doesBounce

      @Deprecated(forRemoval=true) public boolean doesBounce()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      doesBounce in interface org.bukkit.entity.Projectile
    • setBounce

      @Deprecated(forRemoval=true) public void setBounce(boolean doesBounce)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setBounce in interface org.bukkit.entity.Projectile
    • getOwnerUniqueId

      @Nullable public @Nullable UUID getOwnerUniqueId()
      Specified by:
      getOwnerUniqueId in interface org.bukkit.entity.Projectile
    • setShooter

      public void setShooter(@Nullable @Nullable org.bukkit.projectiles.ProjectileSource source)
      Specified by:
      setShooter in interface org.bukkit.entity.Projectile
    • hasLeftShooter

      public boolean hasLeftShooter()
      Specified by:
      hasLeftShooter in interface org.bukkit.entity.Projectile
    • setHasLeftShooter

      public void setHasLeftShooter(boolean leftShooter)
      Specified by:
      setHasLeftShooter in interface org.bukkit.entity.Projectile
    • hasBeenShot

      public boolean hasBeenShot()
      Specified by:
      hasBeenShot in interface org.bukkit.entity.Projectile
    • setHasBeenShot

      public void setHasBeenShot(boolean beenShot)
      Specified by:
      setHasBeenShot in interface org.bukkit.entity.Projectile
    • getShooter

      @Nullable public @Nullable org.bukkit.projectiles.ProjectileSource getShooter()
      Specified by:
      getShooter in interface org.bukkit.entity.Projectile
    • canHitEntity

      public boolean canHitEntity(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Specified by:
      canHitEntity in interface org.bukkit.entity.Projectile
    • hitEntity

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

      public void hitEntity(@NotNull @NotNull org.bukkit.entity.Entity entity, @NotNull @NotNull org.bukkit.util.Vector vector)
      Specified by:
      hitEntity in interface org.bukkit.entity.Projectile