BannerPatternLayersBuilder
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.block.entity.BannerPatternLayersBuilder;
Members
add(pattern as BannerPattern, color as DyeColor) as Builder
Adds a layer to the BannerPatternLayers.Builder.script.zs
Returns: The BannerPatternLayers.Builder with the layer added.
myBuilder.add(myBannerPattern, myDyeColor);
Parameters:
Return Type:
BannerPatternLayersBuilder
add(layer as Layer) as Builder
Adds a layer to the BannerPatternLayers.Builder.script.zs
Returns: The BannerPatternLayers.Builder with the layer added.
myBuilder.add(myLayer);
Parameters:
layer: BannerPatternLayersLayer
Type: BannerPatternLayersLayer
- The BannerPatternLayers.Layer to add.
Return Type:
BannerPatternLayersBuilder
addAll(layers as BannerPatternLayers) as Builder
Adds all layers from the provided script.zs
BannerPatternLayers
to the BannerPatternLayers.Builder.Returns: The BannerPatternLayers.Builder with the layers added.
myBuilder.addAll(myBannerPatternLayers);
Parameters:
Return Type:
BannerPatternLayersBuilder
build() as BannerPatternLayers
Builds the script.zs
BannerPatternLayers
from the BannerPatternLayers.Builder.Returns: The BannerPatternLayers
built from the BannerPatternLayers.Builder.
myBuilder.build();
Return Type:
BannerPatternLayers
static of() as Builder
Creates a new BannerPatternLayers.Builder.script.zs
Returns: The new BannerPatternLayers.Builder.
BannerPatternLayersBuilder.of();
Return Type:
BannerPatternLayersBuilder