Condition

@Serializable(with = BlockStateMultipartConditionSerializer::class)
sealed interface Condition

Inheritors

Types

Link copied to clipboard
@Serializable(with = BlockStateMultipartStateConditionSerializer::class)
data class State(val properties: Map<String, Set<String>>) : BlockStateDefinition.MultipartCase.Condition

Functions

Link copied to clipboard
abstract fun matches(properties: Map<String, String>): Boolean

Checks whether this condition matches the given properties.