Package cpw.mods.fml.common

Examples of cpw.mods.fml.common.IFuelHandler


        InfuseRegistry.registerInfuseObject(new ItemStack(Blocks.brown_mushroom), new InfuseObject(InfuseRegistry.get("FUNGI"), 10));
        InfuseRegistry.registerInfuseObject(new ItemStack(CompressedDiamond), new InfuseObject(InfuseRegistry.get("DIAMOND"), 100));
        InfuseRegistry.registerInfuseObject(new ItemStack(CompressedObsidian), new InfuseObject(InfuseRegistry.get("OBSIDIAN"), 100));
       
        //Fuels
        GameRegistry.registerFuelHandler(new IFuelHandler() {
      @Override
      public int getBurnTime(ItemStack fuel)
      {
        if(fuel.isItemEqual(new ItemStack(BasicBlock, 1, 3)))
        {
View Full Code Here


      new CommandTreekeepingMode()};
  }

  @Override
  public IFuelHandler getFuelHandler() {
    return new IFuelHandler() {
      @Override
      public int getBurnTime(ItemStack fuel) {
        if (ForestryItem.sapling.isItemEqual(fuel))
          return 100;
View Full Code Here

    IOreDictionaryHandler dictionaryHandler = plugin.getDictionaryHandler();
    if (dictionaryHandler != null)
      dictionaryHandlers.add(dictionaryHandler);

    IFuelHandler fuelHandler = plugin.getFuelHandler();
    if (fuelHandler != null)
      GameRegistry.registerFuelHandler((fuelHandler));
  }
View Full Code Here

    return new ICommand[]{new CommandForestry()};
  }

  @Override
  public IFuelHandler getFuelHandler() {
    return new IFuelHandler() {

      @Override
      public int getBurnTime(ItemStack fuel) {
        if (fuel != null && fuel.getItem() == ForestryItem.peat.item())
          return 2000;
View Full Code Here

TOP

Related Classes of cpw.mods.fml.common.IFuelHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.