Interface AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>
- All Superinterfaces:
AbstractBuilder<T>
,Builder<T,
,B> CopyableBuilder<T,
,B> ResettableBuilder<T,
B>
- All Known Subinterfaces:
AdvancementCriterion.Builder
,ScoreAdvancementCriterion.Builder
- Enclosing interface:
- AdvancementCriterion
public static interface AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>
extends Builder<T,B>, CopyableBuilder<T,B>
A base builder to create
AdvancementCriterion
s.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newAdvancementCriterion
.Sets the name of theAdvancementCriterion
.trigger
(FilteredTrigger<?> trigger) Sets theFilteredTrigger
.Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
trigger
Sets theFilteredTrigger
.- Parameters:
trigger
- The filtered trigger- Returns:
- This builder, for chaining
-
name
Sets the name of theAdvancementCriterion
. Names can be shared between multiple criteria, although it isn't allowed when using them for the sameAdvancement
.- Parameters:
name
- The name- Returns:
- This builder, for chaining
-
build
T build()Builds a newAdvancementCriterion
.- Specified by:
build
in interfaceAbstractBuilder<T extends AdvancementCriterion>
- Returns:
- The criterion
-