mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
Add getWidth + getHeight for Entity
By: bramhaag <bramhagens@hotmail.nl>
This commit is contained in:
@@ -52,6 +52,20 @@ public interface Entity extends Metadatable, CommandSender, Nameable {
|
|||||||
*/
|
*/
|
||||||
public Vector getVelocity();
|
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
|
* 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
|
* state updated by the server and is not recalculated unless the entity
|
||||||
|
Reference in New Issue
Block a user