mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Added ArrowEntity and World.spawnArrow().
This commit is contained in:
parent
fd3072b427
commit
e3fe73ca04
2 changed files with 21 additions and 0 deletions
9
src/main/java/org/bukkit/ArrowEntity.java
Normal file
9
src/main/java/org/bukkit/ArrowEntity.java
Normal file
|
@ -0,0 +1,9 @@
|
|||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* Represents an arrow.
|
||||
*
|
||||
* @author sk89q
|
||||
*/
|
||||
public interface ArrowEntity extends Entity {
|
||||
}
|
|
@ -15,4 +15,16 @@ public interface World {
|
|||
public Chunk getChunkAt(Block block);
|
||||
|
||||
public boolean isChunkLoaded();
|
||||
|
||||
/**
|
||||
* Spawns an arrow.
|
||||
*
|
||||
* @param loc
|
||||
* @param velocity velocity vector
|
||||
* @param speed a reasonable speed is 0.6
|
||||
* @param spread a reasonable spread is 12
|
||||
* @return the arrow entity
|
||||
*/
|
||||
public ArrowEntity spawnArrow(Location loc, Vector velocity,
|
||||
float speed, float spread);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue