Class FoliaProjectileSpawner

java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
me.deecaad.weaponmechanics.weapon.projectile.FoliaProjectileSpawner

public class FoliaProjectileSpawner extends ProjectileSpawner
Spawns projectiles each on their own thread, in the region they are spawned in.
  • Constructor Details

    • FoliaProjectileSpawner

      public FoliaProjectileSpawner(@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