5a0fd88182
Most of it is working just need some more work before can be call Updated. Still have to fix model rotations, Add new steam engine, Add Eletric motor block, Add crank Shaft, Fix all models to fit to pipes, Re do pipes to look nicer. Most likely i need to fix both steam engine and boiler's share resources methods, and Generation methods
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package EUI.SteamPower.burner;
|
|
|
|
import net.minecraft.src.*;
|
|
|
|
public class ContainerFireBox extends Container
|
|
{
|
|
private TileEntityFireBox tileEntity;
|
|
|
|
public ContainerFireBox(InventoryPlayer par1InventoryPlayer, TileEntityFireBox tileEntity)
|
|
{
|
|
this.tileEntity = tileEntity;
|
|
this.addSlotToContainer(new Slot(tileEntity, 0, 33, 34));
|
|
int var3;
|
|
|
|
for (var3 = 0; var3 < 3; ++var3)
|
|
{
|
|
for (int var4 = 0; var4 < 9; ++var4)
|
|
{
|
|
this.addSlotToContainer(new Slot(par1InventoryPlayer, var4 + var3 * 9 + 9, 8 + var4 * 18, 84 + var3 * 18));
|
|
}
|
|
}
|
|
|
|
for (var3 = 0; var3 < 9; ++var3)
|
|
{
|
|
this.addSlotToContainer(new Slot(par1InventoryPlayer, var3, 8 + var3 * 18, 142));
|
|
}
|
|
}
|
|
|
|
public boolean canInteractWith(EntityPlayer par1EntityPlayer)
|
|
{
|
|
return this.tileEntity.isUseableByPlayer(par1EntityPlayer);
|
|
}
|
|
|
|
/**
|
|
* Called to transfer a stack from one inventory to the other eg. when shift clicking.
|
|
*/
|
|
public ItemStack transferStackInSlot(int par1)
|
|
{
|
|
|
|
return null;
|
|
}
|
|
}
|