Class FireballMock

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.Entity, org.bukkit.entity.Explosive, org.bukkit.entity.Fireball, 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:
DragonFireballMock, SizedFireballMock, WitherSkullMock

public class FireballMock extends ProjectileMock implements org.bukkit.entity.Fireball
Mock implementation of a Fireball.
See Also:
  • Constructor Details

    • FireballMock

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

    • setDirection

      public void setDirection(@NotNull @NotNull org.bukkit.util.Vector direction)
      Specified by:
      setDirection in interface org.bukkit.entity.Fireball
    • getDirection

      @NotNull public @NotNull org.bukkit.util.Vector getDirection()
      Specified by:
      getDirection in interface org.bukkit.entity.Fireball
    • setAcceleration

      public void setAcceleration(@NotNull @NotNull org.bukkit.util.Vector acceleration)
      Specified by:
      setAcceleration in interface org.bukkit.entity.Fireball
    • getAcceleration

      @NotNull public @NotNull org.bukkit.util.Vector getAcceleration()
      Specified by:
      getAcceleration in interface org.bukkit.entity.Fireball
    • setPower

      @Deprecated(since="1.20.6") public void setPower(@NotNull @NotNull org.bukkit.util.Vector power)
      Deprecated.
      Specified by:
      setPower in interface org.bukkit.entity.Fireball
    • getPower

      @Deprecated(since="1.20.6") @NotNull public @NotNull org.bukkit.util.Vector getPower()
      Deprecated.
      Specified by:
      getPower in interface org.bukkit.entity.Fireball
    • setYield

      public void setYield(float blastYield)
      Specified by:
      setYield in interface org.bukkit.entity.Explosive
    • getYield

      public float getYield()
      Specified by:
      getYield in interface org.bukkit.entity.Explosive
    • setIsIncendiary

      public void setIsIncendiary(boolean isIncendiary)
      Specified by:
      setIsIncendiary in interface org.bukkit.entity.Explosive
    • isIncendiary

      public boolean isIncendiary()
      Specified by:
      isIncendiary in interface org.bukkit.entity.Explosive