Sets how many hits it takes to break a block.
(float hardness)
| 395 | * Sets how many hits it takes to break a block. |
| 396 | */ |
| 397 | protected Block setHardness(float hardness) |
| 398 | { |
| 399 | this.blockHardness = hardness; |
| 400 | |
| 401 | if (this.blockResistance < hardness * 5.0F) |
| 402 | { |
| 403 | this.blockResistance = hardness * 5.0F; |
| 404 | } |
| 405 | |
| 406 | return this; |
| 407 | } |
| 408 | |
| 409 | protected Block setBlockUnbreakable() |
| 410 | { |
no outgoing calls
no test coverage detected