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 Copyimport crafttweaker.api.item.component.AdventureModePredicate;
Static Methods
Link to static-methods
Name: of
Return Type: AdventureModePredicate
ZenScript CopyAdventureModePredicate.of(predicates as stdlib.List<BlockPredicate>, showInTooltip as boolean) as AdventureModePredicate
Parameter | Type |
---|---|
Parameter predicates | Type stdlib.List<BlockPredicate> |
Parameter showInTooltip | Type boolean |
Name: ofBlocks
Return Type: AdventureModePredicate
ZenScript CopyAdventureModePredicate.ofBlocks(predicates as stdlib.List<Block>, showInTooltip as boolean) as AdventureModePredicate
Parameter | Type |
---|---|
Parameter predicates | Type stdlib.List<Block> |
Parameter showInTooltip | Type boolean |
Name: ofTags
Return Type: AdventureModePredicate
ZenScript CopyAdventureModePredicate.ofTags(predicates as stdlib.List<KnownTag<Block>>, showInTooltip as boolean) as AdventureModePredicate
Parameter | Type |
---|---|
Parameter predicates | Type stdlib.List<KnownTag<Block>> |
Parameter showInTooltip | Type boolean |
Methods
Link to methods
Name: withTooltip
Return Type: AdventureModePredicate
ZenScript CopyAdventureModePredicate.withTooltip(tooltip as boolean) as AdventureModePredicate
Parameter | Type |
---|---|
Parameter tooltip | Type boolean |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name showInTooltip | Type boolean | Has Getter true | Has Setter false |