mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-22 05:50:49 +00:00
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package com.hbm.handler.nei;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
|
|
import com.hbm.blocks.ModBlocks;
|
|
import com.hbm.inventory.fluid.Fluids;
|
|
import com.hbm.items.ModItems;
|
|
import com.hbm.items.machine.ItemFluidIcon;
|
|
import com.hbm.items.special.ItemBedrockOreNew;
|
|
import com.hbm.items.special.ItemBedrockOreNew.BedrockOreGrade;
|
|
import com.hbm.items.special.ItemBedrockOreNew.BedrockOreType;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class OreSlopperHandler extends NEIUniversalHandler {
|
|
|
|
public OreSlopperHandler() {
|
|
super(ModBlocks.machine_ore_slopper.getLocalizedName(), ModBlocks.machine_ore_slopper, getRecipes());
|
|
}
|
|
|
|
@Override
|
|
public String getKey() {
|
|
return "ntmOreSlopper";
|
|
}
|
|
|
|
public static HashMap getRecipes() {
|
|
HashMap<Object, Object> recipes = new HashMap<Object, Object>();
|
|
List<ItemStack> outputs = new ArrayList();
|
|
for(BedrockOreType type : BedrockOreType.values()) outputs.add(ItemBedrockOreNew.make(BedrockOreGrade.BASE, type));
|
|
outputs.add(ItemFluidIcon.make(Fluids.SLOP, 1000));
|
|
recipes.put(new ItemStack[] {ItemFluidIcon.make(Fluids.WATER, 1000), new ItemStack(ModItems.bedrock_ore_base)}, outputs.toArray(new ItemStack[0]));
|
|
|
|
return recipes;
|
|
}
|
|
}
|