From baf4ff4d9774fbde0f7dae677d81c76b0c452eb0 Mon Sep 17 00:00:00 2001 From: bramhaag Date: Sat, 18 Mar 2017 11:09:05 +0100 Subject: Add getWidth + getHeight for Entity --- src/main/java/org/bukkit/entity/Entity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/main/java/org') 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 @@ -52,6 +52,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 -- cgit v1.2.3