Class SpigotProjectileSpawner

java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
me.deecaad.weaponmechanics.weapon.projectile.SpigotProjectileSpawner
All Implemented Interfaces:
Runnable

public class SpigotProjectileSpawner extends ProjectileSpawner implements Runnable
Spawns projectiles onto 1 central thread.
  • Constructor Details

    • SpigotProjectileSpawner

      public SpigotProjectileSpawner(@NotNull org.bukkit.plugin.Plugin plugin)
      Initializes the spawner with the given plugin.
      Parameters:
      plugin - The non-null plugin used to register runnables
  • Method Details

    • spawn

      public void spawn(@NotNull AProjectile projectile)
      Description copied from class: ProjectileSpawner
      Spawns the given projectile. If the thread has control over the region where the projectile is spawned, the projectile will be ticked instantly.
      Specified by:
      spawn in class ProjectileSpawner
      Parameters:
      projectile - The non-null projectile to spawn
    • run

      public void run()
      Specified by:
      run in interface Runnable