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

BannerPatternLayersLayer

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.BannerPatternLayersLayer;

Members

Getter
script.zs
// Layer.color as DyeColor
myLayer.color

Return Type: DyeColor

Getter
script.zs
// Layer.description as MutableComponent
myLayer.description

Return Type: MutableComponent

static of(pattern as BannerPattern, color as DyeColor) as Layer
script.zs
// Layer.of(pattern as BannerPattern, color as DyeColor) as BannerPatternLayersLayer;
BannerPatternLayersLayer.of(myBannerPattern, myDyeColor);

Parameters:

pattern Type: BannerPattern
color Type: DyeColor

Return Type: BannerPatternLayersLayer

Getter
script.zs
// Layer.pattern as BannerPattern
myLayer.pattern

Return Type: BannerPattern