Class ModAdvancements

java.lang.Object
net.minheur.mhm_bitsnbobs.advancement.ModAdvancements

public class ModAdvancements extends Object
The advancement registering class. To add them to the datagen, go to ModAdvancementGen and add it to the build function.
  • Field Details

  • Constructor Details

    • ModAdvancements

      public ModAdvancements()
  • Method Details

    • addRoot

      protected static AdvancementBuilder addRoot(String id, String group)
      Adding a root advancement
      Parameters:
      id - the id of your advancement
      group - the group of your advancement (ex. story, adventure...)
      Returns:
      a new advancement builder
    • addWithParent

      protected static AdvancementBuilder addWithParent(String id, String group)
      Adding an advancement with a parent
      Parameters:
      id - the id of your advancement
      group - the group pf your advancement (ex. story, adventure...). It should be the same as the root !
      Returns:
      the new advancement builder
    • simpleCriterion

      protected static CriterionBuilder simpleCriterion(net.minecraft.resources.ResourceLocation trigger)
      Creates a builder for criterion
      Parameters:
      trigger - the id of the criterion's trigger
      Returns:
      a new criterion builder