Infusion REI display
This commit is contained in:
parent
ea4b9b726b
commit
cd88d69cf3
14 changed files with 626 additions and 439 deletions
|
@ -18,12 +18,12 @@ public class InfusionRecipes {
|
|||
.build();
|
||||
|
||||
InfusionRecipe.Builder.create("eternal_crystal")
|
||||
.setInput(EndItems.CRYSTAL_SHARDS)
|
||||
.setInput(Items.END_CRYSTAL)
|
||||
.setOutput(EndItems.ETERNAL_CRYSTAL)
|
||||
.addCatalyst(0, Items.END_CRYSTAL)
|
||||
.addCatalyst(2, Items.END_CRYSTAL)
|
||||
.addCatalyst(4, Items.END_CRYSTAL)
|
||||
.addCatalyst(6, Items.END_CRYSTAL)
|
||||
.addCatalyst(0, EndItems.CRYSTAL_SHARDS)
|
||||
.addCatalyst(2, EndItems.CRYSTAL_SHARDS)
|
||||
.addCatalyst(4, EndItems.CRYSTAL_SHARDS)
|
||||
.addCatalyst(6, EndItems.CRYSTAL_SHARDS)
|
||||
.addCatalyst(1, EndItems.ENDER_DUST)
|
||||
.addCatalyst(3, EndItems.ENDER_DUST)
|
||||
.addCatalyst(5, EndItems.ENDER_DUST)
|
||||
|
|
|
@ -14,6 +14,7 @@ import net.minecraft.recipe.RecipeSerializer;
|
|||
import net.minecraft.recipe.RecipeType;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.JsonHelper;
|
||||
import net.minecraft.util.collection.DefaultedList;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
|
@ -68,6 +69,16 @@ public class InfusionRecipe implements Recipe<InfusionRitual> {
|
|||
public boolean fits(int width, int height) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultedList<Ingredient> getPreviewInputs() {
|
||||
DefaultedList<Ingredient> defaultedList = DefaultedList.of();
|
||||
defaultedList.add(input);
|
||||
for (Ingredient catalyst : catalysts) {
|
||||
defaultedList.add(catalyst);
|
||||
}
|
||||
return defaultedList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getOutput() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue