Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

AdvancementRequirements

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.advancement.AdvancementRequirements;

Members

count(test as function(t as string) as bool) as int
script.zs
// AdvancementRequirements.count(test as function(t as string) as bool) as int;
myAdvancementRequirements.count(myPredicate);

Parameters:

test Type: function(t as string) as bool

Return Type: int

Getter
script.zs
// AdvancementRequirements.isEmpty as bool
myAdvancementRequirements.isEmpty

Return Type: bool

Getter
script.zs
// AdvancementRequirements.names as Set<string>
myAdvancementRequirements.names

Return Type: Set<string>

Getter
script.zs
// AdvancementRequirements.requirements as List<List<string>>
myAdvancementRequirements.requirements

Return Type: List<List<string>>

Getter
script.zs
// AdvancementRequirements.size as int
myAdvancementRequirements.size

Return Type: int

test(test as function(t as string) as bool) as bool
script.zs
// AdvancementRequirements.test(test as function(t as string) as bool) as bool;
myAdvancementRequirements.test(myPredicate);

Parameters:

test Type: function(t as string) as bool

Return Type: bool