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.
import crafttweaker.api.block.entity.BannerPatternLayers;
Members
Getter
Gets the layers of the script.zs
BannerPatternLayers
.myBannerPatternLayers.layers
Return Type:
List<BannerPatternLayersLayer>
static of(layers as List<Layer>) as BannerPatternLayers
Creates a new script.zs
BannerPatternLayers
with the provided layers.Returns: The new BannerPatternLayers
.
BannerPatternLayers.of(myList);
Parameters:
layers: List<BannerPatternLayersLayer>
Type: List<BannerPatternLayersLayer>
- The layers to create the BannerPatternLayers
with.
Return Type:
BannerPatternLayers
removeLast() as BannerPatternLayers
Removes the last layer from the script.zs
BannerPatternLayers
.Returns: The BannerPatternLayers
with the last layer removed.
myBannerPatternLayers.removeLast();
Return Type:
BannerPatternLayers