Class AbstractArrowMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.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.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
ArrowMock, SpectralArrowMock, TridentMock

public class AbstractArrowMock extends AbstractProjectileMock implements org.bukkit.entity.AbstractArrow
  • Constructor Details

    • AbstractArrowMock

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

    • getKnockbackStrength

      public int getKnockbackStrength()
      Specified by:
      getKnockbackStrength in interface org.bukkit.entity.AbstractArrow
    • setKnockbackStrength

      public void setKnockbackStrength(int knockbackStrength)
      Specified by:
      setKnockbackStrength in interface org.bukkit.entity.AbstractArrow
    • getDamage

      public double getDamage()
      Specified by:
      getDamage in interface org.bukkit.entity.AbstractArrow
    • setDamage

      public void setDamage(double damage)
      Specified by:
      setDamage in interface org.bukkit.entity.AbstractArrow
    • getPierceLevel

      public int getPierceLevel()
      Specified by:
      getPierceLevel in interface org.bukkit.entity.AbstractArrow
    • setPierceLevel

      public void setPierceLevel(int pierceLevel)
      Specified by:
      setPierceLevel in interface org.bukkit.entity.AbstractArrow
    • isCritical

      public boolean isCritical()
      Specified by:
      isCritical in interface org.bukkit.entity.AbstractArrow
    • setCritical

      public void setCritical(boolean critical)
      Specified by:
      setCritical in interface org.bukkit.entity.AbstractArrow
    • isInBlock

      public boolean isInBlock()
      Specified by:
      isInBlock in interface org.bukkit.entity.AbstractArrow
    • getAttachedBlock

      @Nullable public @Nullable org.bukkit.block.Block getAttachedBlock()
      Specified by:
      getAttachedBlock in interface org.bukkit.entity.AbstractArrow
    • getPickupStatus

      @NotNull public @NotNull org.bukkit.entity.AbstractArrow.PickupStatus getPickupStatus()
      Specified by:
      getPickupStatus in interface org.bukkit.entity.AbstractArrow
    • setPickupStatus

      public void setPickupStatus(@NotNull @NotNull org.bukkit.entity.AbstractArrow.PickupStatus status)
      Specified by:
      setPickupStatus in interface org.bukkit.entity.AbstractArrow
    • isShotFromCrossbow

      public boolean isShotFromCrossbow()
      Specified by:
      isShotFromCrossbow in interface org.bukkit.entity.AbstractArrow
    • setShotFromCrossbow

      public void setShotFromCrossbow(boolean shotFromCrossbow)
      Specified by:
      setShotFromCrossbow in interface org.bukkit.entity.AbstractArrow
    • getItem

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItem()
      Specified by:
      getItem in interface org.bukkit.entity.AbstractArrow
    • setItem

      public void setItem(@NotNull @NotNull org.bukkit.inventory.ItemStack item)
      Specified by:
      setItem in interface org.bukkit.entity.AbstractArrow
    • getItemStack

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItemStack()
      Specified by:
      getItemStack in interface org.bukkit.entity.AbstractArrow
    • setItemStack

      public void setItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setItemStack in interface org.bukkit.entity.AbstractArrow
    • setLifetimeTicks

      public void setLifetimeTicks(int ticks)
      Specified by:
      setLifetimeTicks in interface org.bukkit.entity.AbstractArrow
    • getLifetimeTicks

      public int getLifetimeTicks()
      Specified by:
      getLifetimeTicks in interface org.bukkit.entity.AbstractArrow
    • getHitSound

      @NotNull public @NotNull org.bukkit.Sound getHitSound()
      Specified by:
      getHitSound in interface org.bukkit.entity.AbstractArrow
    • setHitSound

      public void setHitSound(@NotNull @NotNull org.bukkit.Sound sound)
      Specified by:
      setHitSound in interface org.bukkit.entity.AbstractArrow
    • setNoPhysics

      public void setNoPhysics(boolean noPhysics)
      Specified by:
      setNoPhysics in interface org.bukkit.entity.Entity
      Overrides:
      setNoPhysics in class EntityMock
    • hasNoPhysics

      public boolean hasNoPhysics()
      Specified by:
      hasNoPhysics in interface org.bukkit.entity.Entity
      Overrides:
      hasNoPhysics in class EntityMock