Attempts to extinguish a fire @param player The player putting out the fire @param pos The coordinates of the fire @param side The side from which the player is putting out the fire from
(EntityPlayer player, BlockPos pos, EnumFacing side)
| 2271 | * @param side The side from which the player is putting out the fire from |
| 2272 | */ |
| 2273 | public boolean extinguishFire(EntityPlayer player, BlockPos pos, EnumFacing side) |
| 2274 | { |
| 2275 | pos = pos.offset(side); |
| 2276 | |
| 2277 | if (this.getBlockState(pos).getBlock() == Blocks.fire) |
| 2278 | { |
| 2279 | this.playAuxSFXAtEntity(player, 1004, pos, 0); |
| 2280 | this.setBlockToAir(pos); |
| 2281 | return true; |
| 2282 | } |
| 2283 | else |
| 2284 | { |
| 2285 | return false; |
| 2286 | } |
| 2287 | } |
| 2288 | |
| 2289 | /** |
| 2290 | * This string is 'All: (number of loaded entities)' Viewable by press ing F3 |
no test coverage detected