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.
import crafttweaker.api.item.component.AdventureModePredicate;Members
static of(predicates as List<BlockPredicate>, showInTooltip as bool) as AdventureModePredicate
// AdventureModePredicate.of(predicates as List<BlockPredicate>, showInTooltip as bool) as AdventureModePredicate;AdventureModePredicate.of(myList, myBool);Parameters:
predicates: List<BlockPredicate> Type: List<BlockPredicate> showInTooltip: bool Type: bool
Return Type:
AdventureModePredicate
static ofBlocks(predicates as List<Block>, showInTooltip as bool) as AdventureModePredicate
// AdventureModePredicate.ofBlocks(predicates as List<Block>, showInTooltip as bool) as AdventureModePredicate;AdventureModePredicate.ofBlocks(myList, myBool);
Return Type:
AdventureModePredicate
static ofTags(predicates as List<KnownTag<Block>>, showInTooltip as bool) as AdventureModePredicate
// AdventureModePredicate.ofTags(predicates as List<KnownTag<Block>>, showInTooltip as bool) as AdventureModePredicate;AdventureModePredicate.ofTags(myList, myBool);Parameters:
Return Type:
AdventureModePredicate
Getter
// AdventureModePredicate.showInTooltip as boolmyAdventureModePredicate.showInTooltip
Return Type:
bool
withTooltip(tooltip as bool) as AdventureModePredicate
myAdventureModePredicate.withTooltip(myBool);Parameters:
tooltip: bool Type: bool
Return Type:
AdventureModePredicate