Interface IForgeAdvancementBuilder
-
- All Known Implementing Classes:
Advancement.Builder
public interface IForgeAdvancementBuilder
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Advancement
save(java.util.function.Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper)
save function for theAdvancement.Builder
which uses theExistingFileHelper
to check if the parent is already knowndefault Advancement.Builder
self()
-
-
-
Method Detail
-
self
default Advancement.Builder self()
-
save
default Advancement save(java.util.function.Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper)
save function for theAdvancement.Builder
which uses theExistingFileHelper
to check if the parent is already known- Parameters:
consumer
- AConsumer
which the buildAdvancement
is passed toid
- TheResourceLocation
for the newAdvancement
fileHelper
- TheExistingFileHelper
where all knownAdvancement
s are registered- Returns:
- The build
Advancement
- Throws:
java.lang.IllegalStateException
- is thrown if the parent of theAdvancement
is not known
-
-