CustomData
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Operators
in(key as string) as bool
Checks if the CustomData contains the given key.
Parameters:
key: string
Type: string
- The key to check for.
Return Type:
bool
Members
contains(key as string) as bool
Checks if the CustomData contains the given key.
Returns: Whether the CustomData contains the given key.
Parameters:
key: string
Type: string
- The key to check for.
Return Type:
bool
Getter
Gets the copy of the tag of the CustomData.
Return Type:
CompoundTag
Getter
Checks if the CustomData is empty.
Return Type:
bool
static of(tag as MapData) as CustomData
Getter
Gets the size of the CustomData.
Return Type:
int
update(updater as function(t as MapData) as void) as CustomData
Updates the CustomData with the given updater.
Returns: The updated CustomData.
Parameters:
Return Type:
CustomData