Commits

montlikadani authored and md_5 committed bcddb7542af
SPIGOT-6256: Add method to check if the entity is in water
No tags

src/main/java/org/bukkit/entity/Entity.java

Modified
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 @NotNull
107 114 public World getWorld();
108 115
109 116 /**
110 117 * Sets the entity's rotation.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut