Interface AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>
-
- All Superinterfaces:
AbstractBuilder<T>
,Buildable.Builder<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 createAdvancementCriterion
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
build()
Builds a newAdvancementCriterion
.B
name(java.lang.String name)
Sets the name of theAdvancementCriterion
.B
trigger(FilteredTrigger<?> trigger)
Sets theFilteredTrigger
.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
-
-
-
Method Detail
-
trigger
B trigger(FilteredTrigger<?> trigger)
Sets theFilteredTrigger
.- Parameters:
trigger
- The filtered trigger- Returns:
- This builder, for chaining
-
name
B name(java.lang.String 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>
- Specified by:
build
in interfaceBuildable.Builder<T extends AdvancementCriterion>
- Returns:
- The criterion
-
-