mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 22:34:21 +00:00
Energy Cubes and Gas Tanks now have configurable item inputs and gas/energy outputs, fixed Portable Tank item output
This commit is contained in:
1 parent
0a135a6936
commit
a22b33a629
24 files changed
+287
-118
No files matched your search
@@ -107,6 +107,7 @@ import mekanism.common.tile.TileEntitySolarEvaporationController;
|
||||
import mekanism.common.tile.TileEntitySolarNeutronActivator;
|
||||
import mekanism.common.tile.TileEntityStructuralGlass;
|
||||
import mekanism.common.tile.TileEntityTeleporter;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.init.Blocks;
|
||||
@@ -639,6 +640,24 @@ public class CommonProxy implements IGuiProvider
|
||||
{
|
||||
return context.getServerHandler().playerEntity;
|
||||
}
|
||||
|
||||
public int getGuiId(Block block, int metadata)
|
||||
{
|
||||
if(MachineType.get(block, metadata) != null)
|
||||
{
|
||||
return MachineType.get(block, metadata).guiId;
|
||||
}
|
||||
else if(block == MekanismBlocks.GasTank)
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
else if(block == MekanismBlocks.EnergyCube)
|
||||
{
|
||||
return 8;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public void renderLaser(World world, Pos3D from, Pos3D to, ForgeDirection direction, double energy) {}
|
||||
}
|
||||
Reference in new issue
Block a user