Commits
montlikadani authored and md_5 committed bcddb7542af
91 91 | /** |
92 92 | * Returns true if the entity is supported by a block. This value is a |
93 93 | * state updated by the server and is not recalculated unless the entity |
94 94 | * moves. |
95 95 | * |
96 96 | * @return True if entity is on ground. |
97 97 | * @see Player#isOnGround() |
98 98 | */ |
99 99 | public boolean isOnGround(); |
100 100 | |
101 + | /** |
102 + | * Returns true if the entity is in water. |
103 + | * |
104 + | * @return <code>true</code> if the entity is in water. |
105 + | */ |
106 + | public boolean isInWater(); |
107 + | |
101 108 | /** |
102 109 | * Gets the current world this entity resides in |
103 110 | * |
104 111 | * @return World |
105 112 | */ |
106 113 | |
107 114 | public World getWorld(); |
108 115 | |
109 116 | /** |
110 117 | * Sets the entity's rotation. |