public static class BlockProperty.Opacity extends Component implements BlockProperty
BlockProperty.BlockSound, BlockProperty.Hardness, BlockProperty.Opacity, BlockProperty.Replaceable, BlockProperty.Resistance| Constructor and Description |
|---|
Opacity() |
| Modifier and Type | Method and Description |
|---|---|
double |
getOpacity()
This value determines if the block should allow light through itself or not.
|
boolean |
isOpaque()
Checks if the block should disallow light through
|
boolean |
isTransparent()
Checks if the block should allow light through
|
BlockProperty.Opacity |
setOpacity(double opacity)
Sets if light should be transmitted through this block
|
BlockProperty.Opacity |
setOpacity(java.util.function.DoubleSupplier opacity)
Sets if light should be transmitted through this block
|
BlockProperty.Opacity |
setOpaque()
Sets that the block should disallow light through
|
BlockProperty.Opacity |
setTransparent()
Sets that the block should allow light through
|
getID, getProvider, onProviderChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsameTypepublic BlockProperty.Opacity setTransparent()
public BlockProperty.Opacity setOpaque()
public BlockProperty.Opacity setOpacity(java.util.function.DoubleSupplier opacity)
opacity - The block's opacitypublic BlockProperty.Opacity setOpacity(double opacity)
opacity - The block's opacitypublic double getOpacity()
public boolean isTransparent()
public boolean isOpaque()