Interface AttachableDirectional

All Superinterfaces:
BlockData, Cloneable, Directional, FaceAttachable
All Known Subinterfaces:
Grindstone, Switch

@NullMarked public interface AttachableDirectional extends FaceAttachable, Directional
A marker interface for block data that is both FaceAttachable and Directional.

This represents blocks that are mounted on a specific face of another block (e.g., buttons, levers) and also have a facing direction.

  • Method Details

    • getAttachedBlockFace

      default BlockFace getAttachedBlockFace()
      Gets the BlockFace of the block that this block is physically attached to. This is determined by the attached face.
      Returns:
      the block face to which this block is attached