Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

BannerPatternLayers

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.

script.zs
import crafttweaker.api.block.entity.BannerPatternLayers;

Members

Getter
Gets the layers of the BannerPatternLayers.
script.zs
// BannerPatternLayers.layers as List<BannerPatternLayersLayer>
myBannerPatternLayers.layers

Return Type: List<BannerPatternLayersLayer>

static of(layers as List<Layer>) as BannerPatternLayers
Creates a new BannerPatternLayers with the provided layers.

Returns: The new BannerPatternLayers.

script.zs
// BannerPatternLayers.of(layers as List<BannerPatternLayersLayer>) as BannerPatternLayers;
BannerPatternLayers.of(myList);

Parameters:

layers Type: List<BannerPatternLayersLayer> - The layers to create the BannerPatternLayers with.

Return Type: BannerPatternLayers

removeLast() as BannerPatternLayers
Removes the last layer from the BannerPatternLayers.

Returns: The BannerPatternLayers with the last layer removed.

script.zs
// BannerPatternLayers.removeLast() as BannerPatternLayers;
myBannerPatternLayers.removeLast();

Return Type: BannerPatternLayers