From 2a2b2324e04c18dcfdfd3b4a2555a360d52221a3 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 18 Mar 2017 11:09:05 +0100 Subject: [PATCH] Add getWidth + getHeight for Entity By: bramhaag --- .../src/main/java/org/bukkit/entity/Entity.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index b4a70518a8..941be7bb28 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/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