Class ArrowMock

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.Arrow, 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

public class ArrowMock extends AbstractArrowMock implements org.bukkit.entity.Arrow
  • Constructor Details

    • ArrowMock

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

    • setBasePotionData

      public void setBasePotionData(@Nullable @Nullable org.bukkit.potion.PotionData data)
      Specified by:
      setBasePotionData in interface org.bukkit.entity.Arrow
    • getBasePotionData

      @Nullable public @Nullable org.bukkit.potion.PotionData getBasePotionData()
      Specified by:
      getBasePotionData in interface org.bukkit.entity.Arrow
    • setBasePotionType

      public void setBasePotionType(@NotNull @NotNull org.bukkit.potion.PotionType type)
      Specified by:
      setBasePotionType in interface org.bukkit.entity.Arrow
    • getBasePotionType

      @NotNull public @NotNull org.bukkit.potion.PotionType getBasePotionType()
      Specified by:
      getBasePotionType in interface org.bukkit.entity.Arrow
    • getColor

      @Nullable public @Nullable org.bukkit.Color getColor()
      Specified by:
      getColor in interface org.bukkit.entity.Arrow
    • setColor

      public void setColor(@Nullable @Nullable org.bukkit.Color color)
      Specified by:
      setColor in interface org.bukkit.entity.Arrow
    • hasCustomEffects

      public boolean hasCustomEffects()
      Specified by:
      hasCustomEffects in interface org.bukkit.entity.Arrow
    • getCustomEffects

      @NotNull public @NotNull List<org.bukkit.potion.PotionEffect> getCustomEffects()
      Specified by:
      getCustomEffects in interface org.bukkit.entity.Arrow
    • addCustomEffect

      public boolean addCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffect effect, boolean overwrite)
      Specified by:
      addCustomEffect in interface org.bukkit.entity.Arrow
    • removeCustomEffect

      public boolean removeCustomEffect(@NotNull @NotNull org.bukkit.potion.PotionEffectType type)
      Specified by:
      removeCustomEffect in interface org.bukkit.entity.Arrow
    • hasCustomEffect

      public boolean hasCustomEffect(@Nullable @Nullable org.bukkit.potion.PotionEffectType type)
      Specified by:
      hasCustomEffect in interface org.bukkit.entity.Arrow
    • clearCustomEffects

      public void clearCustomEffects()
      Specified by:
      clearCustomEffects in interface org.bukkit.entity.Arrow
    • getType

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