public static class BlockProperty.Replaceable extends Component implements BlockProperty
BlockProperty.BlockSound, BlockProperty.Hardness, BlockProperty.Opacity, BlockProperty.Replaceable, BlockProperty.Resistance| Constructor and Description |
|---|
Replaceable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReplaceable()
Check if this block can be replaced.
|
BlockProperty.Replaceable |
setReplaceable(java.util.function.BooleanSupplier replaceable)
Set the boolean supplier that is used to check if this block is replaceable.
|
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsameTypepublic BlockProperty.Replaceable setReplaceable(java.util.function.BooleanSupplier replaceable)
replaceable - The replacement boolean supplier.public boolean isReplaceable()