toggle menu
silk
1.10.4
jvm
switch theme
search in API
silk-nbt
/
net.silkmc.silk.nbt.dsl
/
NbtCompoundBuilder
Nbt
Compound
Builder
class
NbtCompoundBuilder
(
source
)
Members
Constructors
Nbt
Compound
Builder
Link copied to clipboard
constructor
(
)
Functions
build
Link copied to clipboard
fun
build
(
)
:
CompoundTag
byte
Array
Link copied to clipboard
fun
byteArray
(
key
:
String
,
value
:
ByteArray
)
fun
byteArray
(
key
:
String
,
value
:
Collection
<
Byte
>
)
compound
Link copied to clipboard
inline
fun
compound
(
key
:
String
,
build
:
NbtCompoundBuilder
.
(
)
->
Unit
)
int
Array
Link copied to clipboard
fun
intArray
(
key
:
String
,
value
:
IntArray
)
fun
intArray
(
key
:
String
,
value
:
Collection
<
Int
>
)
list
Link copied to clipboard
inline
fun
list
(
key
:
String
,
build
:
NbtListBuilder
.
(
)
->
Unit
)
inline
fun
<
T
>
list
(
key
:
String
,
value
:
Iterable
<
T
>
)
Puts an NBT list (
not
a primitive array) with all elements in
value
.
long
Array
Link copied to clipboard
fun
longArray
(
key
:
String
,
value
:
LongArray
)
fun
longArray
(
key
:
String
,
value
:
Collection
<
Long
>
)
put
Link copied to clipboard
fun
put
(
key
:
String
,
value
:
Boolean
)
fun
put
(
key
:
String
,
value
:
Byte
)
fun
put
(
key
:
String
,
value
:
Char
)
fun
put
(
key
:
String
,
value
:
Double
)
fun
put
(
key
:
String
,
value
:
Float
)
fun
put
(
key
:
String
,
value
:
Int
)
fun
put
(
key
:
String
,
value
:
Long
)
fun
put
(
key
:
String
,
value
:
Short
)
fun
put
(
key
:
String
,
value
:
String
)
fun
put
(
key
:
String
,
value
:
Tag
)