aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/oreprocessing/ProcessingSand.java
blob: b1996d067fdf44046971549b69fe55b21c0d04d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package gregtech.loaders.oreprocessing;

import static gregtech.api.recipe.RecipeMaps.centrifugeRecipes;
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;

import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;

import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Utility;

public class ProcessingSand implements gregtech.api.interfaces.IOreRecipeRegistrator {

    public ProcessingSand() {
        OrePrefixes.sand.add(this);
    }

    @Override
    public void registerOre(OrePrefixes aPrefix, Materials aMaterial, String aOreDictName, String aModName,
        ItemStack aStack) {
        if (aOreDictName.equals("sandOil")) {
            GT_Values.RA.stdBuilder()
                .itemInputs(GT_Utility.copyAmount(2, aStack), ItemList.Cell_Empty.get(1))
                .itemOutputs(
                    GT_OreDictUnificator.get(OrePrefixes.cell, Materials.Oil, 1L),
                    new ItemStack(Blocks.sand, 1, 0))
                .duration(50 * SECONDS)
                .eut(5)
                .addTo(centrifugeRecipes);
        }
    }
}