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
script.zs
// BannerPatternLayers.layers as List<BannerPatternLayersLayer>
myBannerPatternLayers.layers

Return Type: List<BannerPatternLayersLayer>

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

Parameters:

Return Type: BannerPatternLayers

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

Return Type: BannerPatternLayers