Interface IForgeAdvancementBuilder
- All Known Implementing Classes:
Advancement.Builder
public interface IForgeAdvancementBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondefault Advancement
save
(Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper) save function for theAdvancement.Builder
which uses theExistingFileHelper
to check if the parent is already knownprivate Advancement.Builder
self()
-
Method Details
-
self
-
save
default Advancement save(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:
IllegalStateException
- is thrown if the parent of theAdvancement
is not known
-