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.
import crafttweaker.api.item.component.CustomData;
Operators
in(key as string) as bool
// ((key as string) in CustomData) as boolmyString in myCustomData
Parameters:
key: string
Type: string
Return Type:
bool
Members
contains(key as string) as bool
// CustomData.contains(key as string) as bool;myCustomData.contains(myString);
Parameters:
key: string
Type: string
Return Type:
bool
Getter
// CustomData.copyTag as CompoundTagmyCustomData.copyTag
Return Type:
CompoundTag
Getter
// CustomData.isEmpty as boolmyCustomData.isEmpty
Return Type:
bool
static of(tag as MapData) as CustomData
CustomData.of(myMapData);
Return Type:
CustomData
Getter
// CustomData.size as intmyCustomData.size
Return Type:
int
update(updater as function(t as MapData) as void) as CustomData
myCustomData.update(myConsumer);
Return Type:
CustomData