diff --git a/runelite-api/src/main/java/net/runelite/api/Client.java b/runelite-api/src/main/java/net/runelite/api/Client.java index 5bbc86cc59..e354a3e5d6 100644 --- a/runelite-api/src/main/java/net/runelite/api/Client.java +++ b/runelite-api/src/main/java/net/runelite/api/Client.java @@ -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. * diff --git a/runelite-api/src/main/java/net/runelite/api/Deque.java b/runelite-api/src/main/java/net/runelite/api/Deque.java index 482306b6de..e949f7e7b2 100644 --- a/runelite-api/src/main/java/net/runelite/api/Deque.java +++ b/runelite-api/src/main/java/net/runelite/api/Deque.java @@ -29,6 +29,12 @@ package net.runelite.api; */ public interface Deque extends Iterable { + /** + * Add a new element to the end of the deque + * @param t the element + */ + void addLast(T t); + /** * clear the deque */