mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 23:07:37 +00:00
Added getWidth() getHeight() and getYOffset() functions to ScriptEntity
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user