Minecraft wiki entry for Pre-flattening, associated text: 0x8: If this bit is set, this is the top half of a door (else the lower half).
0x4: If this bit is set, the door has swung counterclockwise around its hinge.