Unbreakable

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.item.component.Unbreakable;

Implements

Undocumented Interfaces

TooltipProvider

Members

static of(showInTooltip as bool) as Unbreakable
script.zs
// Unbreakable.of(showInTooltip as bool) as Unbreakable;
Unbreakable.of(myBool);

Parameters:

showInTooltip Type: bool

Return Type: Unbreakable

Getter
script.zs
// Unbreakable.showInTooltip as bool
myUnbreakable.showInTooltip

Return Type: bool

withTooltip(showInTooltip as bool) as Unbreakable
script.zs
// Unbreakable.withTooltip(showInTooltip as bool) as Unbreakable;
myUnbreakable.withTooltip(myBool);

Parameters:

showInTooltip Type: bool

Return Type: Unbreakable