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)
| 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. |
no test coverage detected