接口 IForgeAdvancementBuilder
- 所有已知实现类:
Advancement.Builder
public interface IForgeAdvancementBuilder
-
方法概要
修饰符和类型方法说明default Advancement
save
(Consumer<Advancement> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.private Advancement.Builder
self()
-
方法详细资料
-
self
-
save
default Advancement save(Consumer<Advancement> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.- 参数:
saver
- aConsumer
which saves any advancements providedid
- theResourceLocation
id for the new advancementfileHelper
- theExistingFileHelper
where all known advancements are registered- 返回:
- the built advancement
- 抛出:
IllegalStateException
- if the parent of the advancement is not known
-