Class 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>, CommandSender, Entity, Projectile, Metadatable, Nameable, Permissible, ServerOperator, PersistentDataHolder
Direct Known Subclasses:
ProjectileMock

public abstract class AbstractProjectileMock extends EntityMock implements 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 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 Projectile