Class SpigotProjectileSpawner
java.lang.Object
me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
me.deecaad.weaponmechanics.weapon.projectile.SpigotProjectileSpawner
- All Implemented Interfaces:
Runnable
Spawns projectiles onto 1 central thread.
-
Field Summary
Fields inherited from class me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
managers, plugin -
Constructor Summary
ConstructorsConstructorDescriptionSpigotProjectileSpawner(org.bukkit.plugin.Plugin plugin) Initializes the spawner with the given plugin. -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()voidspawn(AProjectile projectile) Spawns the given projectile.Methods inherited from class me.deecaad.weaponmechanics.weapon.projectile.ProjectileSpawner
addScriptManager, doFirstTick
-
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
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
-
run
public void run()
-