-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from sweetrpg/bugfix/processing-loop
Fix recipe cost calculation
- Loading branch information
Showing
4 changed files
with
290 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/java/com/sweetrpg/crafttracker/common/model/ProductRequirement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.sweetrpg.crafttracker.common.model; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
|
||
import java.util.Map; | ||
|
||
public class ProductRequirement { | ||
public ResourceLocation productId; | ||
public ResourceLocation recipeId; | ||
public Map<ResourceLocation, Integer> intermediateRecipes; | ||
public Map<ResourceLocation, Integer> materials; | ||
|
||
public ProductRequirement(ResourceLocation productId, ResourceLocation recipeId, Map<ResourceLocation, Integer> intermediateRecipes, Map<ResourceLocation, Integer> materials) { | ||
this.productId = productId; | ||
this.recipeId = recipeId; | ||
this.intermediateRecipes = intermediateRecipes; | ||
this.materials = materials; | ||
} | ||
|
||
} |
Oops, something went wrong.