BannerPatternLayers

Link to bannerpatternlayers

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.block.entity.BannerPatternLayers;

Extending Record

Link to extending-record

BannerPatternLayers extends Record. That means all methods available in Record are also available in BannerPatternLayers

Name: of

Return Type: BannerPatternLayers

ZenScript
Copy
BannerPatternLayers.of(layers as stdlib.List<BannerPatternLayersLayer>) as BannerPatternLayers
ParameterType
Parameter
layers
Type
stdlib.List<BannerPatternLayersLayer>

Name: removeLast

Return Type: BannerPatternLayers

ZenScript
Copy
// BannerPatternLayers.removeLast() as BannerPatternLayers

myBannerPatternLayers.removeLast();
NameTypeHas GetterHas Setter
Name
layers
Type
stdlib.List<BannerPatternLayersLayer>
Has Getter
true
Has Setter
false