AdventureModePredicate

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

Members

static of(predicates as List<BlockPredicate>, showInTooltip as bool) as AdventureModePredicate
script.zs
// AdventureModePredicate.of(predicates as List<BlockPredicate>, showInTooltip as bool) as AdventureModePredicate;
AdventureModePredicate.of(myList, myBool);

Parameters:

predicates Type: List<BlockPredicate>
showInTooltip Type: bool

Return Type: AdventureModePredicate

static ofBlocks(predicates as List<Block>, showInTooltip as bool) as AdventureModePredicate
script.zs
// AdventureModePredicate.ofBlocks(predicates as List<Block>, showInTooltip as bool) as AdventureModePredicate;
AdventureModePredicate.ofBlocks(myList, myBool);

Parameters:

predicates Type: List<Block>
showInTooltip Type: bool

Return Type: AdventureModePredicate

static ofTags(predicates as List<KnownTag<Block>>, showInTooltip as bool) as AdventureModePredicate
script.zs
// AdventureModePredicate.ofTags(predicates as List<KnownTag<Block>>, showInTooltip as bool) as AdventureModePredicate;
AdventureModePredicate.ofTags(myList, myBool);

Parameters:

predicates Type: List<KnownTag<Block>>
showInTooltip Type: bool

Return Type: AdventureModePredicate

Getter
script.zs
// AdventureModePredicate.showInTooltip as bool
myAdventureModePredicate.showInTooltip

Return Type: bool

withTooltip(tooltip as bool) as AdventureModePredicate
script.zs
// AdventureModePredicate.withTooltip(tooltip as bool) as AdventureModePredicate;
myAdventureModePredicate.withTooltip(myBool);

Parameters:

tooltip Type: bool

Return Type: AdventureModePredicate