ScopedBlockStateProperty
abstract class ScopedBlockStateProperty<T : Any>(val property: BlockStateProperty<T>, val values: Set<T>, val initializer: BlockStatePropertyInitializer<T>)
Represents a property-type of a block state, along with the allowed values.
Constructors
Link copied to clipboard
constructor(property: BlockStateProperty<T>, values: Set<T>, initializer: BlockStatePropertyInitializer<T>)
Functions
Link copied to clipboard
Determines whether the given string is valid for this property.
Link copied to clipboard
Determines whether the given value is valid for this property.
Link copied to clipboard
Converts the given string to the corresponding value or throws an IllegalArgumentException if string is not valid for this property.
Link copied to clipboard
Converts the given value to a String or throws an IllegalArgumentException if value is not valid for this property.