nova-parent
Toggle table of contents
0.21.0-alpha.3
jvm
Platform filter
jvm
Switch theme
Search in API
nova-parent
nova
/
xyz.xenondevs.nova.resources.builder.data
/
BlockStateDefinition
/
MultipartCase
Multipart
Case
@
Serializable
data
class
MultipartCase
(
val
condition
:
BlockStateDefinition.MultipartCase.Condition
?
=
null
,
val
apply
:
List
<
BlockStateDefinition.Model
>
)
Members
Constructors
Multipart
Case
Link copied to clipboard
constructor
(
condition
:
BlockStateDefinition.MultipartCase.Condition
?
=
null
,
apply
:
List
<
BlockStateDefinition.Model
>
)
Types
Condition
Link copied to clipboard
@
Serializable
(
with
=
BlockStateMultipartConditionSerializer::class
)
sealed
interface
Condition
Properties
apply
Link copied to clipboard
@
Serializable
(
with
=
ValueOrListSerializer::class
)
val
apply
:
List
<
BlockStateDefinition.Model
>
condition
Link copied to clipboard
@
SerialName
(
value
=
"when"
)
val
condition
:
BlockStateDefinition.MultipartCase.Condition
?
=
null
Functions
matches
Link copied to clipboard
fun
matches
(
properties
:
Map
<
String
,
String
>
)
:
Boolean
Checks whether this multipart case matches the given
properties
.