package ru.nord.common.tiles; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import ru.nord.client.gui.inventory.GuiFurnace; import ru.nord.common.container.ContainerFurnace; import ru.nord.common.lib.recipes.FurnaceRecipes1I2O; import ru.nord_core.common.recipes.interfaces.IRecipes1I2O; import ru.nord_core.common.tiles.abstracts.TileAbstractEnergyMachine; import ru.nord_core.common.utils.Constants; public class TileFurnace extends TileAbstractEnergyMachine { @Override public String getName() { return this.hasCustomName() ? this.machineCustomName : "nord.tile.furnace"; } @Override public int getMaxEnergy() { return 12800; } @Override public IRecipes1I2O getRecipes() { return FurnaceRecipes1I2O.INSTANCE(); } @Override public int getWorkPacketEnergy() { return 4; } @Override public int getBurnPacketEnergy() { return Constants.SHARE_MULTIPLE; } @Override public int getPacketEnergy() { return Constants.SHARE_MULTIPLE; } @Override public Container getContainer(EntityPlayer player) { return new ContainerFurnace(player.inventory,this); } @SideOnly(Side.CLIENT) @Override public GuiContainer getGui(EntityPlayer player) { return new GuiFurnace(player,this); } }