AdventureModePredicate

Link to adventuremodepredicate

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.item.component.AdventureModePredicate;

Name: of

Return Type: AdventureModePredicate

ZenScript
Copy
AdventureModePredicate.of(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as AdventureModePredicate
ParameterType
Parameter
predicates
Type
stdlib.List<BlockPredicate>
Parameter
showInTooltip
Type
boolean

Name: ofBlocks

Return Type: AdventureModePredicate

ZenScript
Copy
AdventureModePredicate.ofBlocks(predicates as stdlib.List<Block>, showInTooltip as boolean) as AdventureModePredicate
ParameterType
Parameter
predicates
Type
stdlib.List<Block>
Parameter
showInTooltip
Type
boolean

Name: ofTags

Return Type: AdventureModePredicate

ZenScript
Copy
AdventureModePredicate.ofTags(predicates as stdlib.List<KnownTag<Block>>, showInTooltip as boolean) as AdventureModePredicate
ParameterType
Parameter
predicates
Type
stdlib.List<KnownTag<Block>>
Parameter
showInTooltip
Type
boolean

Name: withTooltip

Return Type: AdventureModePredicate

ZenScript
Copy
AdventureModePredicate.withTooltip(tooltip as boolean) as AdventureModePredicate
ParameterType
Parameter
tooltip
Type
boolean
NameTypeHas GetterHas Setter
Name
showInTooltip
Type
boolean
Has Getter
true
Has Setter
false