public static class BlockProperty.Resistance extends Component implements BlockProperty
The standard, regular block resistance is 1. Double.POSITIVE_INFINITY is unexplodable.
BlockProperty.BlockSound, BlockProperty.Hardness, BlockProperty.Opacity, BlockProperty.Replaceable, BlockProperty.Resistance| Constructor and Description |
|---|
Resistance() |
| Modifier and Type | Method and Description |
|---|---|
double |
getResistance()
Gets the blast resistance, indicates how many cubic meters
of TNT are needed to explode it.
|
BlockProperty.Resistance |
setResistance(double resistance)
Sets the blast resistance, indicates how many cubic meters
of TNT are needed to explode it.
|
BlockProperty.Resistance |
setResistance(java.util.function.DoubleSupplier resistance)
Sets the blast resistance, indicates how many cubic meters
of TNT are needed to explode it.
|
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsameTypepublic BlockProperty.Resistance setResistance(java.util.function.DoubleSupplier resistance)
resistance - The blast resistance.public BlockProperty.Resistance setResistance(double resistance)
resistance - The blast resistance.public double getResistance()