Home Commands Examples Getting Started With Scripts Global Keywords

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;

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