public static interface AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>> extends ResettableBuilder<T,B>
AdvancementCriterion
s.Modifier and Type | Method and Description |
---|---|
T |
build()
Builds a new
AdvancementCriterion . |
B |
name(String name)
Sets the name of the
AdvancementCriterion . |
B |
trigger(FilteredTrigger<?> trigger)
Sets the
FilteredTrigger . |
from, reset
B trigger(FilteredTrigger<?> trigger)
FilteredTrigger
.trigger
- The filtered triggerB name(String name)
AdvancementCriterion
. Names can be
shared between multiple criteria, although it isn't allowed when
using them for the same Advancement
.name
- The nameT build()
AdvancementCriterion
.