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

DecoratedPotPattern

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

Members

Getter
Gets the location of the asset used by the pot pattern.
script.zs
// DecoratedPotPattern.assetId as ResourceLocation
myDecoratedPotPattern.assetId

Return Type: ResourceLocation

assetId() as ResourceLocation
Gets the location of the asset used by the pot pattern.

Returns: The pot pattern asset ID.

script.zs
// DecoratedPotPattern.assetId() as ResourceLocation;
myDecoratedPotPattern.assetId();

Return Type: ResourceLocation

Getter
Gets the command string for the pot pattern.
script.zs
// DecoratedPotPattern.commandString as string
myDecoratedPotPattern.commandString

Return Type: string