geforkt von Mirrors/Paper
Added ArrowEntity and World.spawnArrow().
By: sk89q <the.sk89q@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
7da3223201
Commit
1ce014ded9
9
paper-api/src/main/java/org/bukkit/ArrowEntity.java
Normale Datei
9
paper-api/src/main/java/org/bukkit/ArrowEntity.java
Normale Datei
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren