NBTCompound.get

class NBTCompound
T
get
(
T : INBTItem = INBTItem
)
(
string name
,
bool throwOnError = true
)

Parameters

name string

Name to search for.

throwOnError bool

When false, returns null instead of throwing an exception.

Return Value

Type: T

the item with the name name.

Throws

Exception when unable to cast to the target type. Exception when unable to find name in the array.

Meta