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 Copyimport crafttweaker.api.component.DataComponentMapBuilder;
Methods
Link to methods
Name: addAll
Return Type: DataComponentMapBuilder
ZenScript CopyDataComponentMapBuilder.addAll(other as DataComponentMap) as DataComponentMapBuilder
Parameter | Type |
---|---|
Parameter other | Type DataComponentMap |
Name: build
Return Type: DataComponentMap
ZenScript Copy// DataComponentMapBuilder.build() as DataComponentMap
myDataComponentMapBuilder.build();
Name: setComponent
Return Type: DataComponentMapBuilder
ZenScript CopyDataComponentMapBuilder.setComponent<T : Object>(type as DataComponentType<T>, value as @org.openzen.zencode.java.ZenCodeType.Nullable T) as DataComponentMapBuilder
Parameter | Type |
---|---|
Parameter type | Type DataComponentType<T> |
Parameter value | Type @org.openzen.zencode.java.ZenCodeType.Nullable T |
Parameter T | Type Object |