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

Shearable

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.entity.Shearable;

Implements

Undocumented Interfaces

IShearable

Members

Getter
script.zs
// Shearable.readyForShearing as bool
myShearable.readyForShearing

Return Type: bool

shear(source as SoundSource)
script.zs
// Shearable.shear(source as SoundSource);
myShearable.shear(mySoundSource);

Parameters:

source Type: SoundSource