MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / isWet

Method isWet

src/main/java/net/minecraft/entity/Entity.java:1113–1116  ·  view source on GitHub ↗

Checks if this entity is either in water or on an open air block in rain (used in wolves).

()

Source from the content-addressed store, hash-verified

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

Callers 9

moveEntityMethod · 0.95
evalMethod · 0.80
evalMethod · 0.80
onEntityUpdateMethod · 0.80
onUpdateMethod · 0.80
updateAITasksMethod · 0.80
updateAITasksMethod · 0.80
onLivingUpdateMethod · 0.80
onUpdateMethod · 0.80

Calls 1

canLightningStrikeMethod · 0.80

Tested by

no test coverage detected