EntityAPI.isInWater

Returns true if this entity is currently in a water block, including waterlogging
overload 1:
user:isInWater()
Method Property Fluent Description Representation
Return Value a Boolean
a a