Interface IAdvancementBuilderExtension


public interface IAdvancementBuilderExtension
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.advancements.AdvancementHolder
    save(Consumer<net.minecraft.advancements.AdvancementHolder> saver, net.minecraft.resources.ResourceLocation id)
    Saves this builder with the given id.
    private net.minecraft.advancements.Advancement.Builder
     
  • Method Details

    • self

      private net.minecraft.advancements.Advancement.Builder self()
    • save

      default net.minecraft.advancements.AdvancementHolder save(Consumer<net.minecraft.advancements.AdvancementHolder> saver, net.minecraft.resources.ResourceLocation id)
      Saves this builder with the given id.
      Parameters:
      saver - a Consumer which saves any advancements provided
      id - the ResourceLocation id for the new advancement
      Returns:
      the built advancement
      Throws:
      IllegalStateException - if the parent of the advancement is not known