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
Gets the DyeColor of the BannerPatternLayers.Layer.
script.zs
// Layer.color as DyeColor
myLayer.color

Return Type: DyeColor

Getter
Gets the description of the BannerPatternLayers.Layer.
script.zs
// Layer.description as MutableComponent
myLayer.description

Return Type: MutableComponent

static of(pattern as BannerPattern, color as DyeColor) as Layer
Creates a new BannerPatternLayers.Layer.

Returns: The new BannerPatternLayers.Layer.

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

Parameters:

pattern Type: BannerPattern - The BannerPattern to create the BannerPatternLayers.Layer with.
color Type: DyeColor - The DyeColor to create the BannerPatternLayers.Layer with.

Return Type: BannerPatternLayersLayer

Getter
Gets the BannerPattern of the BannerPatternLayers.Layer.
script.zs
// Layer.pattern as BannerPattern
myLayer.pattern

Return Type: BannerPattern