[Change] Expose strategy API that does not depend on underlying type
This commit is contained in:
parent
5a3c33d364
commit
f6c47344de
1 changed files with 10 additions and 0 deletions
|
@ -382,6 +382,16 @@ public class AdvancementManager {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Builder requireAll() {
|
||||||
|
builder.requirements(AdvancementRequirements.Strategy.AND);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder requireOne() {
|
||||||
|
builder.requirements(AdvancementRequirements.Strategy.OR);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public Builder requirements(AdvancementRequirements.Strategy requirementsStrategy) {
|
public Builder requirements(AdvancementRequirements.Strategy requirementsStrategy) {
|
||||||
builder.requirements(requirementsStrategy);
|
builder.requirements(requirementsStrategy);
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue