diff options
author | bramhaag <bramhagens@hotmail.nl> | 2017-03-18 11:09:05 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-03-19 10:51:11 +1100 |
commit | baf4ff4d9774fbde0f7dae677d81c76b0c452eb0 (patch) | |
tree | 32a16015c12f1341c3220934283d89a7913786bf | |
parent | 75136977af49ed90e15ea6282145e5ae302b4743 (diff) | |
download | bukkit-baf4ff4d9774fbde0f7dae677d81c76b0c452eb0.tar bukkit-baf4ff4d9774fbde0f7dae677d81c76b0c452eb0.tar.gz bukkit-baf4ff4d9774fbde0f7dae677d81c76b0c452eb0.tar.lz bukkit-baf4ff4d9774fbde0f7dae677d81c76b0c452eb0.tar.xz bukkit-baf4ff4d9774fbde0f7dae677d81c76b0c452eb0.zip |
Add getWidth + getHeight for Entity
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index b4a70518..941be7bb 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -53,6 +53,20 @@ public interface Entity extends Metadatable, CommandSender, Nameable { public Vector getVelocity(); /** + * Gets the entity's height + * + * @return height of entity + */ + public double getHeight(); + + /** + * Gets the entity's width + * + * @return width of entity + */ + public double getWidth(); + + /** * Returns true if the entity is supported by a block. This value is a * state updated by the server and is not recalculated unless the entity * moves. |