-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
372 additions
and
6 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
54 changes: 54 additions & 0 deletions
54
src/main/java/eu/pb4/polyfactory/polydex/pages/TransformMixerRecipePage.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,54 @@ | ||
package eu.pb4.polyfactory.polydex.pages; | ||
|
||
import eu.pb4.factorytools.api.recipe.CountedIngredient; | ||
import eu.pb4.factorytools.api.util.ItemComponentPredicate; | ||
import eu.pb4.polyfactory.fluid.FluidStack; | ||
import eu.pb4.polyfactory.recipe.input.FluidInputStack; | ||
import eu.pb4.polyfactory.recipe.mixing.GenericMixingRecipe; | ||
import eu.pb4.polyfactory.recipe.mixing.TransformMixingRecipe; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.recipe.RecipeEntry; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public class TransformMixerRecipePage extends MixerRecipePage<TransformMixingRecipe> { | ||
|
||
public TransformMixerRecipePage(RecipeEntry<TransformMixingRecipe> recipe) { | ||
super(recipe); | ||
} | ||
|
||
@Override | ||
protected List<FluidInputStack> getFluidInput() { | ||
return this.recipe.fluidInput(); | ||
} | ||
|
||
@Override | ||
protected List<CountedIngredient> getItemInput() { | ||
var list = new ArrayList<CountedIngredient>(this.recipe.input().size() + 1); | ||
list.add(new CountedIngredient(Optional.of(this.recipe.base()), ItemComponentPredicate.EMPTY, 1, ItemStack.EMPTY)); | ||
list.addAll(this.recipe.input()); | ||
return list; | ||
} | ||
|
||
@Override | ||
protected List<FluidStack<?>> getFluidOutput() { | ||
return this.recipe.fluidOutput(); | ||
} | ||
|
||
@Override | ||
protected ItemStack getItemOutput() { | ||
return this.recipe.output(); | ||
} | ||
|
||
@Override | ||
protected float getMaxTemperature() { | ||
return this.recipe.maxTemperature(); | ||
} | ||
|
||
@Override | ||
protected float getMinimumTemperature() { | ||
return this.recipe.minimumTemperature(); | ||
} | ||
} |
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.