public static class BlockProperty.Hardness extends Component implements BlockProperty
The standard, regular block hardness is 1. Double.POSITIVE_INFINITY is unbreakable.
BlockProperty.BlockSound, BlockProperty.Hardness, BlockProperty.Opacity, BlockProperty.Replaceable, BlockProperty.Resistance| Constructor and Description |
|---|
Hardness() |
| Modifier and Type | Method and Description |
|---|---|
double |
getHardness()
Gets the breaking difficulty.
|
BlockProperty.Hardness |
setHardness(double hardness)
Sets the breaking difficulty.
|
BlockProperty.Hardness |
setHardness(java.util.function.DoubleSupplier hardness)
Sets the breaking difficulty.
|
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsameTypepublic BlockProperty.Hardness setHardness(java.util.function.DoubleSupplier hardness)
hardness - The breaking difficulty.public BlockProperty.Hardness setHardness(double hardness)
hardness - The breaking difficulty.public double getHardness()