with

fun <T : Any> with(property: BlockStateProperty<T>, value: T): NovaBlockState

Gets the NovaBlockState for this block where property is value or throws an exception for invalid values.


fun with(propertyValues: Map<BlockStateProperty<*>, Any>): NovaBlockState

Gets the NovaBlockState for this block with the given propertyValues or throws an exception for invalid values.