Cleanup in transforms and add projectile.getInteracting() transform (#165)

* Cleanup in transforms and add projectile.getInteracting transform

Move whitespace out of string blocks

Remove unused method from transform.java

Use throws for transform methods, and catch the exceptions in modify()

More whitespace between instructions to improve readability

* Api changes for projectile.getInteracting, mixin for ref
This commit is contained in:
Lucwousin
2019-05-01 23:57:58 +02:00
committed by Tyler Bochard
parent 0761d396af
commit e7c7ece8e6
10 changed files with 615 additions and 528 deletions

View File

@@ -37,6 +37,13 @@ public interface Projectile extends Renderable
*/
int getId();
/**
* Gets the actor that is targeted by this projectile.
*
* @return the target actor, or null if this projectile is an AoE attack
*/
Actor getInteracting();
/**
* Gets the original x-axis coordinate that this projectile started from.
*