//TODO: door corners
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta)
    {
        //TODO: door corners
        return ((meta & 8) == 8
                ||
                ((meta & 4) >> 2 == (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, 1), meta)
                        && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, -1), meta))
                ||
                (meta & 4) >> 2 != (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(1, 0, 0), meta)
                        && checkDoorSeal(world, pos.getPositionAtOffset(-1, 0, 0), meta));
    }
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta)
{
//TODO: door corners
return ((meta & 8) == 8
||
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta)
{
//TODO: door corners
return ((meta & 8) == 8
||
((meta & 4) >> 2 == (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, 1), meta)
&& checkDoorSeal(world, pos.getPositionAtOffset(0, 0, -1), meta))
||
(meta & 4) >> 2 != (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(1, 0, 0), meta)
&& checkDoorSeal(world, pos.getPositionAtOffset(-1, 0, 0), meta));
}
private boolean checkDoorIsSealed(World world, BlockPosition pos, int meta)
{
//TODO: door corners
return ((meta & 8) == 8
||
((meta & 4) >> 2 == (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(0, 0, 1), meta)
&& checkDoorSeal(world, pos.getPositionAtOffset(0, 0, -1), meta))
||
(meta & 4) >> 2 != (meta & 1) && checkDoorSeal(world, pos.getPositionAtOffset(1, 0, 0), meta)
&& checkDoorSeal(world, pos.getPositionAtOffset(-1, 0, 0), meta));
}