Class FoliaProjectileSpawner
java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
me.deecaad.weaponmechanics.weapon.projectile.FoliaProjectileSpawner
Spawns projectiles each on their own thread, in the region they are spawned in.
-
Field Summary
Fields inherited from class me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
managers, plugin -
Constructor Summary
ConstructorsConstructorDescriptionFoliaProjectileSpawner(org.bukkit.plugin.Plugin plugin) Initializes the spawner with the given plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidspawn(AProjectile projectile) Spawns the given projectile.Methods inherited from class me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
addScriptManager, doFirstTick
-
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
Description copied from class:ProjectileSpawnerSpawns the given projectile. If the thread has control over the region where the projectile is spawned, the projectile will be ticked instantly.- Specified by:
spawnin classProjectileSpawner- Parameters:
projectile- The non-null projectile to spawn
-