Added getWidth() getHeight() and getYOffset() functions to ScriptEntity

This commit is contained in:
luisc committed 2021-09-05 23:01:25 -05:00
1 parent 2a378190ae
commit 9f4ab7f01e
1 file changed
+11
@@ -30,6 +30,17 @@ public class ScriptEntity {
this.entity = entity;
}
public double getYOffset() { return entity.getYOffset(); }
/**
* @return The entities width
*/
public double getWidth(){ return entity.width; }
/**
* @return The entities height
*/
public double getHeight(){ return entity.height; }
/**
* @return The entities x position