public List<ItemStack> getInfuseStacks(InfuseType type) { List<ItemStack> ret = new ArrayList<ItemStack>(); for (Map.Entry<ItemStack, InfuseObject> obj : InfuseRegistry.getObjectMap().entrySet()) { if (obj.getValue().type == type) { ret.add(obj.getKey()); } } return ret; }
@EventHandler public void postInit(FMLPostInitializationEvent event) { if (FuelHandler.BCPresent() && BuildcraftFuelRegistry.fuel != null) { for (IFuel s : BuildcraftFuelRegistry.fuel.getFuels()) { if (!(s.getFluid() == null || GasRegistry.containsGas(s.getFluid().getName()))) { GasRegistry.register(new Gas(s.getFluid())); } } BuildcraftFuelRegistry.fuel.addFuel( FluidRegistry.getFluid("ethene"), (int) (240 * general.TO_TE), 40 * FluidContainerRegistry.BUCKET_VOLUME); } for (ItemStack ore : OreDictionary.getOres("dustGold")) { RecipeHandler.addMetallurgicInfuserRecipe( InfuseRegistry.get("CARBON"), 10, MekanismUtils.size(ore, 4), GeneratorsItems.Hohlraum.getEmptyItem()); } }