Class BuildingAddRecipeTrigger

All Implemented Interfaces:
net.minecraft.advancements.CriterionTrigger<BuildingAddRecipeCriterionInstance>

Triggered whenever a new recipe has been set in any building
  • Constructor Details

    • BuildingAddRecipeTrigger

      public BuildingAddRecipeTrigger()
  • Method Details

    • trigger

      public void trigger(net.minecraft.server.level.ServerPlayer player, IRecipeStorage recipeStorage)
      Triggers the listener checks if there are any listening in
      Parameters:
      player - the player the check regards
      recipeStorage - details about the recipe that was added
    • createInstance

      @NotNull public @NotNull BuildingAddRecipeCriterionInstance createInstance(@NotNull @NotNull com.google.gson.JsonObject jsonObject, @NotNull @NotNull net.minecraft.advancements.critereon.DeserializationContext jsonDeserializationContext)