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

Method getFlag

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

Returns true if the flag is active for the entity. Known flags: 0) is burning; 1) is sneaking; 2) is riding something; 3) is sprinting; 4) is eating

(int flag)

Source from the content-addressed store, hash-verified

2265 * something; 3) is sprinting; 4) is eating
2266 */
2267 protected boolean getFlag(int flag)
2268 {
2269 return (this.dataWatcher.getWatchableObjectByte(0) & 1 << flag) != 0;
2270 }
2271
2272 /**
2273 * Enable or disable a entity flag, see getEntityFlag to read the know flags.

Callers 5

isBurningMethod · 0.95
isSneakingMethod · 0.95
isSprintingMethod · 0.95
isInvisibleMethod · 0.95
isEatingMethod · 0.95

Calls 1

Tested by

no test coverage detected