toggle menu
nova-parent
0.17-alpha.36
jvm
switch theme
search in API
nova
/
xyz.xenondevs.nova.serialization.cbf
/
NamespacedCompound
/
getOrPut
get
Or
Put
inline
fun
<
T
>
getOrPut
(
namespace
:
String
,
key
:
String
,
defaultValue
:
(
)
->
T
)
:
T
inline
fun
<
T
>
getOrPut
(
id
:
ResourceLocation
,
defaultValue
:
(
)
->
T
)
:
T
inline
fun
<
T
>
getOrPut
(
key
:
NamespacedKey
,
defaultValue
:
(
)
->
T
)
:
T
inline
fun
<
T
>
getOrPut
(
addon
:
Addon
,
key
:
String
,
defaultValue
:
(
)
->
T
)
:
T