Package powercrystals.minefactoryreloaded.tile.machine

Source Code of powercrystals.minefactoryreloaded.tile.machine.TileEntityBioFuelGenerator

package powercrystals.minefactoryreloaded.tile.machine;

import net.minecraft.entity.player.InventoryPlayer;
import net.minecraftforge.liquids.LiquidDictionary;
import net.minecraftforge.liquids.LiquidStack;
import powercrystals.minefactoryreloaded.gui.client.GuiBioFuelGenerator;
import powercrystals.minefactoryreloaded.gui.client.GuiFactoryInventory;
import powercrystals.minefactoryreloaded.gui.container.ContainerBioFuelGenerator;
import powercrystals.minefactoryreloaded.setup.Machine;
import powercrystals.minefactoryreloaded.tile.base.TileEntityLiquidGenerator;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class TileEntityBioFuelGenerator extends TileEntityLiquidGenerator
{
  public static final int liquidConsumedPerTick = 1;
  public static final int energyProducedPerConsumption = 160;
  public static final int ticksBetweenConsumption = 9;
 
  public TileEntityBioFuelGenerator()
  {
    super(Machine.BioFuelGenerator, liquidConsumedPerTick, energyProducedPerConsumption, ticksBetweenConsumption);
  }
 
  @Override
  protected LiquidStack getLiquidType()
  {
    return LiquidDictionary.getLiquid("biofuel", 1);
  }
 
  @Override
  public int getSizeInventory()
  {
    return 0;
  }
 
  @Override
  public String getGuiBackground()
  {
    return "biofuelgenerator.png";
  }
 
  @Override
  @SideOnly(Side.CLIENT)
  public GuiFactoryInventory getGui(InventoryPlayer inventoryPlayer)
  {
    return new GuiBioFuelGenerator(getContainer(inventoryPlayer), this);
  }
 
  @Override
  public ContainerBioFuelGenerator getContainer(InventoryPlayer inventoryPlayer)
  {
    return new ContainerBioFuelGenerator(this, inventoryPlayer);
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.tile.machine.TileEntityBioFuelGenerator

TOP
Copyright © 2018 www.massapi.com. 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.