Class SpectralArrowMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
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.AbstractArrow, org.bukkit.entity.Entity, org.bukkit.entity.Projectile, org.bukkit.entity.SpectralArrow, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder

public class SpectralArrowMock extends AbstractArrowMock implements org.bukkit.entity.SpectralArrow
  • Constructor Details

    • SpectralArrowMock

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

    • getGlowingTicks

      public int getGlowingTicks()
      Specified by:
      getGlowingTicks in interface org.bukkit.entity.SpectralArrow
    • setGlowingTicks

      public void setGlowingTicks(int duration)
      Specified by:
      setGlowingTicks in interface org.bukkit.entity.SpectralArrow
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock