예제 #1
0
 @Override
 public IFuel getFuel(Fluid fluid) {
   for (IFuel fuel : fuels) {
     if (fuel.getFluid() == fluid) {
       return fuel;
     }
   }
   return null;
 }
  @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());
    }
  }