Added gui and buttons to Chunkloader
This commit is contained in:
parent
fed4ea8bd7
commit
1826927149
6 changed files with 72 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue