api: add projectile creation api
This commit is contained in:
@@ -1034,6 +1034,26 @@ public interface Client extends GameEngine
|
|||||||
@Nullable
|
@Nullable
|
||||||
LocalPoint getLocalDestinationLocation();
|
LocalPoint getLocalDestinationLocation();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a projectile.
|
||||||
|
* @param id projectile/spotanim id
|
||||||
|
* @param plane plane the projectile is on
|
||||||
|
* @param startX local x coordinate the projectile starts at
|
||||||
|
* @param startY local y coordinate the projectile starts at
|
||||||
|
* @param startZ local z coordinate the projectile starts at - includes tile height
|
||||||
|
* @param startCycle cycle the project starts
|
||||||
|
* @param endCycle cycle the projectile ends
|
||||||
|
* @param slope
|
||||||
|
* @param startHeight start height of projectile - excludes tile height
|
||||||
|
* @param endHeight end height of projectile - excludes tile height
|
||||||
|
* @param target optional actor target
|
||||||
|
* @param targetX target x - if an actor target is supplied should be the target x
|
||||||
|
* @param targetY taret y - if an actor target is supplied should be the target y
|
||||||
|
* @return the new projectile
|
||||||
|
*/
|
||||||
|
Projectile createProjectile(int id, int plane, int startX, int startY, int startZ, int startCycle, int endCycle,
|
||||||
|
int slope, int startHeight, int endHeight, @Nullable Actor target, int targetX, int targetY);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a list of all projectiles currently spawned.
|
* Gets a list of all projectiles currently spawned.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -29,6 +29,12 @@ package net.runelite.api;
|
|||||||
*/
|
*/
|
||||||
public interface Deque<T> extends Iterable<T>
|
public interface Deque<T> extends Iterable<T>
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Add a new element to the end of the deque
|
||||||
|
* @param t the element
|
||||||
|
*/
|
||||||
|
void addLast(T t);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clear the deque
|
* clear the deque
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user