mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Port ToMe25's PR for sawing factories (#5383)
* Port remainder of #5327 implementing #5236 sawing factories * Add missing blockstate files for sawing factories * Inline helper method * Revert a bit of minor formatting changes to make dif easier to read * remove redundant mcmeta for sawing front textures * de-dupe sawmill factory textures (left+right are the same)
This commit is contained in:
1 parent
0eb455b882
commit
da71637053
49 files changed
+408
-17
No files matched your search
@@ -15,6 +15,7 @@ import mekanism.common.recipe.inputs.InfusionInput;
|
||||
import mekanism.common.recipe.inputs.ItemStackInput;
|
||||
import mekanism.common.recipe.machines.AdvancedMachineRecipe;
|
||||
import mekanism.common.recipe.machines.BasicMachineRecipe;
|
||||
import mekanism.common.recipe.machines.ChanceMachineRecipe;
|
||||
import mekanism.common.recipe.machines.DoubleMachineRecipe;
|
||||
import mekanism.common.recipe.machines.MachineRecipe;
|
||||
import mekanism.common.recipe.machines.MetallurgicInfuserRecipe;
|
||||
@@ -54,7 +55,8 @@ public interface IFactory {
|
||||
enum MachineFuelType {
|
||||
BASIC,
|
||||
ADVANCED,
|
||||
DOUBLE
|
||||
DOUBLE,
|
||||
CHANCE
|
||||
}
|
||||
|
||||
enum RecipeType implements IStringSerializable {
|
||||
@@ -71,7 +73,9 @@ public interface IFactory {
|
||||
INJECTING("Injecting", "injection", MachineType.CHEMICAL_INJECTION_CHAMBER, MachineFuelType.ADVANCED, true,
|
||||
Recipe.CHEMICAL_INJECTION_CHAMBER),
|
||||
INFUSING("Infusing", "metalinfuser", MachineType.METALLURGIC_INFUSER, MachineFuelType.BASIC, false,
|
||||
Recipe.METALLURGIC_INFUSER);
|
||||
Recipe.METALLURGIC_INFUSER),
|
||||
SAWING("Sawing", "sawmill", MachineType.PRECISION_SAWMILL, MachineFuelType.CHANCE, false,
|
||||
Recipe.PRECISION_SAWMILL);
|
||||
|
||||
private String name;
|
||||
private SoundEvent sound;
|
||||
@@ -129,6 +133,14 @@ public interface IFactory {
|
||||
return getRecipe(new DoubleMachineInput(input, extra));
|
||||
}
|
||||
|
||||
public ChanceMachineRecipe getChanceRecipe(ItemStackInput input) {
|
||||
return RecipeHandler.getChanceRecipe(input, recipe.get());
|
||||
}
|
||||
|
||||
public ChanceMachineRecipe getChanceRecipe(ItemStack input) {
|
||||
return getChanceRecipe(new ItemStackInput(input));
|
||||
}
|
||||
|
||||
public MetallurgicInfuserRecipe getRecipe(InfusionInput input) {
|
||||
return RecipeHandler.getMetallurgicInfuserRecipe(input);
|
||||
}
|
||||
@@ -143,6 +155,8 @@ public interface IFactory {
|
||||
return getRecipe(slotStack, gasType);
|
||||
} else if (fuelType == MachineFuelType.DOUBLE) {
|
||||
return getRecipe(slotStack, extraStack);
|
||||
} else if (fuelType == MachineFuelType.CHANCE) {
|
||||
return getChanceRecipe(slotStack);
|
||||
} else if (this == INFUSING) {
|
||||
if (infuse.type != null) {
|
||||
return RecipeHandler.getMetallurgicInfuserRecipe(new InfusionInput(infuse, slotStack));
|
||||
|
||||
Reference in new issue
Block a user