toggle menu
nova-parent
0.17-alpha.37
jvm
switch theme
search in API
nova
/
xyz.xenondevs.nova.resources.layout.block
/
BlockModelLayoutBuilder
/
selectModel
select
Model
fun
selectModel
(
modelSelector
:
BlockModelSelector
)
Configures the models based on the block state.
@
JvmName
(
name
=
"selectModelString"
)
fun
<
T
:
Any
>
selectModel
(
property
:
BlockStateProperty
<
T
>
,
vararg
models
:
Pair
<
T
,
String
>
)
@
JvmName
(
name
=
"selectModelString"
)
fun
<
T
:
Any
>
selectModel
(
property
:
BlockStateProperty
<
T
>
,
models
:
Map
<
T
,
String
>
)
@
JvmName
(
name
=
"selectModelResourcePath"
)
fun
<
T
:
Any
>
selectModel
(
property
:
BlockStateProperty
<
T
>
,
vararg
models
:
Pair
<
T
,
ResourcePath
>
)
@
JvmName
(
name
=
"selectModelResourcePath"
)
fun
<
T
:
Any
>
selectModel
(
property
:
BlockStateProperty
<
T
>
,
models
:
Map
<
T
,
ResourcePath
>
)
Configures the models based on the given
property
.