@Override
  public int getLightValue(IBlockAccess iBlockAccess, int x, int y, int z) {
    TFangYingJi tileEntity = (TFangYingJi) iBlockAccess.getBlockTileEntity(x, y, z);

    if (tileEntity.getMode() != null) {
      return 10;
    }

    return super.getLightValue(iBlockAccess, x, y, z);
  }
  @Override
  public boolean onMachineActivated(
      World world,
      int i,
      int j,
      int k,
      EntityPlayer entityplayer,
      int par6,
      float par7,
      float par8,
      float par9) {
    TFangYingJi tileentity = (TFangYingJi) world.getBlockTileEntity(i, j, k);

    if (tileentity.isDisabled()) {
      return false;
    }

    return super.onMachineActivated(world, i, j, k, entityplayer, par6, par7, par8, par9);
  }