Checks if this entity is either in water or on an open air block in rain (used in wolves).
()
| 1111 | * Checks if this entity is either in water or on an open air block in rain (used in wolves). |
| 1112 | */ |
| 1113 | public boolean isWet() |
| 1114 | { |
| 1115 | return this.inWater || this.worldObj.canLightningStrike(new BlockPos(this.posX, this.posY, this.posZ)) || this.worldObj.canLightningStrike(new BlockPos(this.posX, this.posY + (double)this.height, this.posZ)); |
| 1116 | } |
| 1117 | |
| 1118 | /** |
| 1119 | * Checks if this entity is inside water (if inWater field is true as a result of handleWaterMovement() returning |
no test coverage detected