2020-11-22 16:18:10 +01:00

74 lines
2.1 KiB
Java

package com.hbm.inventory;
import java.util.HashMap;
import com.hbm.handler.FluidTypeHandler.FluidType;
import com.hbm.items.ModItems;
import net.minecraft.item.ItemStack;
public class FusionRecipes {
public static int getByproductChance(FluidType plasma) {
switch(plasma) {
case PLASMA_DT: return 1200;
case PLASMA_HD: return 1200;
case PLASMA_HT: return 1200;
case PLASMA_XM: return 2400;
case PLASMA_BF: return 150;
default: return 0;
}
}
public static int getBreedingLevel(FluidType plasma) {
switch(plasma) {
case PLASMA_DT: return 1;
case PLASMA_HD: return 1;
case PLASMA_HT: return 1;
case PLASMA_XM: return 3;
case PLASMA_BF: return 4;
default: return 0;
}
}
public static ItemStack getByproduct(FluidType plasma) {
switch(plasma) {
case PLASMA_DT: return new ItemStack(ModItems.pellet_charged);
case PLASMA_HD: return new ItemStack(ModItems.pellet_charged);
case PLASMA_HT: return new ItemStack(ModItems.pellet_charged);
case PLASMA_XM: return new ItemStack(ModItems.powder_chlorophyte);
case PLASMA_BF: return new ItemStack(ModItems.powder_balefire);
default: return null;
}
}
public static int getSteamProduction(FluidType plasma) {
switch(plasma) {
case PLASMA_DT: return 30;
case PLASMA_HD: return 20;
case PLASMA_HT: return 25;
case PLASMA_XM: return 60;
case PLASMA_BF: return 160;
default: return 0;
}
}
public static HashMap<ItemStack, ItemStack> getRecipes() {
HashMap<ItemStack, ItemStack> map = new HashMap();
map.put(new ItemStack(ModItems.fluid_icon, 1, FluidType.PLASMA_DT.ordinal()), getByproduct(FluidType.PLASMA_DT));
map.put(new ItemStack(ModItems.fluid_icon, 1, FluidType.PLASMA_HD.ordinal()), getByproduct(FluidType.PLASMA_HD));
map.put(new ItemStack(ModItems.fluid_icon, 1, FluidType.PLASMA_HT.ordinal()), getByproduct(FluidType.PLASMA_HT));
map.put(new ItemStack(ModItems.fluid_icon, 1, FluidType.PLASMA_XM.ordinal()), getByproduct(FluidType.PLASMA_XM));
map.put(new ItemStack(ModItems.fluid_icon, 1, FluidType.PLASMA_BF.ordinal()), getByproduct(FluidType.PLASMA_BF));
return map;
}
}