Search in sources :

Example 21 with EnumColor

use of mods.railcraft.common.plugins.color.EnumColor in project Railcraft by Railcraft.

the class BlockStrengthGlass method defineRecipes.

@Override
public void defineRecipes() {
    for (EnumColor color : EnumColor.VALUES) {
        CraftingPlugin.addShapedRecipe(getStack(8, color), "GGG", "GDG", "GGG", 'G', RailcraftBlocks.GLASS.getWildcard(), 'D', color.getDyeOreDictTag());
    }
    Object[] frameTypes = { "ingotTin", "ingotNickel", "ingotInvar", "ingotBrass", Items.IRON_INGOT };
    FluidStack water = Fluids.WATER.get(FluidTools.BUCKET_VOLUME);
    for (Object frame : frameTypes) {
        CraftingPlugin.addShapedRecipe(getStack(6, EnumColor.WHITE), "GFG", "GSG", "GWG", 'G', "blockGlassColorless", 'F', frame, 'S', "dustSaltpeter", 'W', water);
    }
}
Also used : EnumColor(mods.railcraft.common.plugins.color.EnumColor) FluidStack(net.minecraftforge.fluids.FluidStack)

Aggregations

EnumColor (mods.railcraft.common.plugins.color.EnumColor)21 ItemStack (net.minecraft.item.ItemStack)7 IBlockState (net.minecraft.block.state.IBlockState)4 GameProfile (com.mojang.authlib.GameProfile)2 Emblem (mods.railcraft.client.emblems.Emblem)2 EntityLocomotive (mods.railcraft.common.carts.EntityLocomotive)2 ResourceLocation (net.minecraft.util.ResourceLocation)2 FluidStack (net.minecraftforge.fluids.FluidStack)2 LocomotiveModelRenderer (mods.railcraft.api.carts.locomotive.LocomotiveModelRenderer)1 LocomotiveRenderType (mods.railcraft.api.carts.locomotive.LocomotiveRenderType)1 LocomotiveModelRenderer (mods.railcraft.client.render.carts.LocomotiveModelRenderer)1 EnumDetector (mods.railcraft.common.blocks.detector.EnumDetector)1 Ingredient (net.minecraft.item.crafting.Ingredient)1 EnumFacing (net.minecraft.util.EnumFacing)1 SideOnly (net.minecraftforge.fml.relauncher.SideOnly)1 ThaumcraftApi (thaumcraft.api.ThaumcraftApi)1 AspectList (thaumcraft.api.aspects.AspectList)1