Changes

Summary

  1. Close LevelPredicate and LevelUpdate and cache instances (details)
  2. Fix builder setting empty wrongly (details)
  3. If a cauldron is empty, skip contents check (details)
  4. Rework ContentMatchIngredient a bit (details)
  5. Clarifying java doc comment (details)
Commit bf596de94f0cb47da6142ca4967dac2a9880c4df by KnightMiner
Close LevelPredicate and LevelUpdate and cache instances

Only about 6-10 instances of each. Closing as its not possible to extend and remain compatible with the cauldron recipe. If someone needs something I missed, open a PR or leave an issue
The file was addedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/util/LevelUpdate.java
The file was removedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/util/ILevelUpdate.java
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/recipe/CauldronRecipe.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/recipe/ICauldronRecipe.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/recipe/CauldronRecipeBuilder.java (diff)
The file was removedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/util/ILevelPredicate.java
The file was addedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/util/LevelPredicate.java
Commit 5fcd7ecb0553977f300216d84f62afaebbf76272 by KnightMiner
Fix builder setting empty wrongly
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/recipe/CauldronRecipeBuilder.java (diff)
Commit 14f7a63fb8f0027ed45f8c261f03bc48e6d6d9bf by KnightMiner
If a cauldron is empty, skip contents check

Fill recipes need the contents check for when the cauldron is not empty, but content check if partially filled
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/recipe/CauldronRecipe.java (diff)
Commit e3286d235981ca4e9f49444debe0d3397ec8cb36 by KnightMiner
Rework ContentMatchIngredient a bit

Instead of serializing to the generic "inspiratons:content_match", a serializer is now registered for each type. The generic one is kept in case someone adds a type with no ingredient though, may be helpful for modpacks
The file was modifiedsrc/main/java/knightminer/inspirations/recipes/InspirationsRecipes.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/ingredient/ContentTypeIngredient.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/CauldronIngredients.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/ingredient/ContentMatchIngredient.java (diff)
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/ingredient/FluidCauldronIngredient.java (diff)
Commit 98519fceb4574a19c8a39362aaeadcaef8c7eea1 by KnightMiner
Clarifying java doc comment
The file was modifiedsrc/main/java/knightminer/inspirations/library/recipe/cauldron/inventory/ICauldronInventory.java (diff)