api: add projectile creation api

This commit is contained in:
Adam
2022-01-14 18:12:23 -05:00
parent e31bfa66fe
commit 82514e0c76
2 changed files with 26 additions and 0 deletions

View File

@@ -1034,6 +1034,26 @@ public interface Client extends GameEngine
@Nullable
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.
*

View File

@@ -29,6 +29,12 @@ package net.runelite.api;
*/
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
*/