Class CriterionRegistry
java.lang.Object
net.fabricmc.fabric.api.object.builder.v1.advancement.CriterionRegistry
Deprecated.
Allows registering advancement criteria for triggers.
A registered criterion (trigger) can be retrieved through
Criteria.getById(Identifier)
.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CriterionRegistry
public CriterionRegistry()Deprecated.
-
-
Method Details
-
register
Deprecated.Registers a criterion for a trigger for advancements.- Type Parameters:
T
- the criterion's type- Parameters:
criterion
- the criterion registered- Returns:
- the criterion registered, for chaining
- Throws:
IllegalArgumentException
- if a criterion with the sameid
exists
-
Criteria.register(Criterion)
in Fabric Transitive Access Wideners (v1).