-
-
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.
Update how crafting queue data is stored
- Loading branch information
1 parent
e24519b
commit 25f286e
Showing
6 changed files
with
245 additions
and
144 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
43 changes: 43 additions & 0 deletions
43
src/main/java/com/sweetrpg/crafttracker/common/model/CraftingQueueProduct.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,43 @@ | ||
package com.sweetrpg.crafttracker.common.model; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.crafting.Recipe; | ||
|
||
import java.util.List; | ||
|
||
public class CraftingQueueProduct { | ||
|
||
ResourceLocation itemId; | ||
List<Recipe> recipes; | ||
int quantity; | ||
|
||
public CraftingQueueProduct(ResourceLocation itemId, List<Recipe> recipes, int quantity) { | ||
this.itemId = itemId; | ||
this.recipes = recipes; | ||
this.quantity = quantity; | ||
} | ||
|
||
public ResourceLocation getItemId() { | ||
return itemId; | ||
} | ||
|
||
public void setItemId(ResourceLocation itemId) { | ||
this.itemId = itemId; | ||
} | ||
|
||
public List<Recipe> getRecipes() { | ||
return recipes; | ||
} | ||
|
||
public void setRecipes(List<Recipe> recipes) { | ||
this.recipes = recipes; | ||
} | ||
|
||
public int getQuantity() { | ||
return quantity; | ||
} | ||
|
||
public void setQuantity(int quantity) { | ||
this.quantity = quantity; | ||
} | ||
} |
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
Oops, something went wrong.