DataComponentMapBuilder

Link to datacomponentmapbuilder

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.component.DataComponentMapBuilder;

Name: addAll

Return Type: DataComponentMapBuilder

ZenScript
Copy
DataComponentMapBuilder.addAll(other as DataComponentMap) as DataComponentMapBuilder
ParameterType
Parameter
other
Type
DataComponentMap

Name: build

Return Type: DataComponentMap

ZenScript
Copy
// DataComponentMapBuilder.build() as DataComponentMap

myDataComponentMapBuilder.build();

Name: setComponent

Return Type: DataComponentMapBuilder

ZenScript
Copy
DataComponentMapBuilder.setComponent<T : Object>(type as DataComponentType<T>, value as @org.openzen.zencode.java.ZenCodeType.Nullable T) as DataComponentMapBuilder
ParameterType
Parameter
type
Type
DataComponentType<T>
Parameter
value
Type
@org.openzen.zencode.java.ZenCodeType.Nullable T
Parameter
T
Type
Object