-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Continue port to Minecraft 1.21.3
- Loading branch information
1 parent
503ad7d
commit 811736a
Showing
6 changed files
with
38 additions
and
65 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
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
24 changes: 2 additions & 22 deletions
24
common/src/main/java/net/blay09/mods/excompressum/registry/compressor/CompressedRecipe.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 |
---|---|---|
@@ -1,28 +1,8 @@ | ||
package net.blay09.mods.excompressum.registry.compressor; | ||
|
||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.crafting.Ingredient; | ||
|
||
public class CompressedRecipe { | ||
private final Ingredient ingredient; | ||
private final int count; | ||
private final ItemStack resultStack; | ||
|
||
public CompressedRecipe(Ingredient ingredient, int count, ItemStack resultStack) { | ||
this.ingredient = ingredient; | ||
this.count = count; | ||
this.resultStack = resultStack; | ||
} | ||
|
||
public Ingredient getIngredient() { | ||
return ingredient; | ||
} | ||
|
||
public int getCount() { | ||
return count; | ||
} | ||
|
||
public ItemStack getResultStack() { | ||
return resultStack; | ||
} | ||
public record CompressedRecipe(ResourceLocation id, Ingredient ingredient, int count, ItemStack resultStack) { | ||
} |
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