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
.<C extends FilteredTriggerConfiguration>
Btrigger
(Trigger<C> type, FilteredTrigger<C> trigger) Sets theFilteredTrigger
.Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Method Details
-
trigger
Sets theFilteredTrigger
.- Parameters:
type
- The trigger typetrigger
- 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
-