Added gui and buttons to Chunkloader

This commit is contained in:
Gig 2015-04-28 21:41:10 +01:00
parent fed4ea8bd7
commit 1826927149
6 changed files with 72 additions and 4 deletions

View file

@ -35,6 +35,16 @@ public class BlockChunkLoader extends BlockMachineBase{
return new TileChunkLoader();
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z,
EntityPlayer player, int side, float hitX, float hitY, float hitZ)
{
if (!player.isSneaking())
player.openGui(Core.INSTANCE, GuiHandler.chunkloaderID, world, x, y,
z);
return true;
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister icon)