Add getWidth + getHeight for Entity

This commit is contained in:
bramhaag 2017-03-18 11:09:05 +01:00 committed by md_5
parent 75136977af
commit baf4ff4d97

View file

@ -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