Works fine with Trapdoors and Gates. With doors it only works with the bottom block - the top half every time returns "false".
public void onDoorInteract(PlayerInteractEvent pie) { if(!pie.getAction().equals(Action.RIGHT_CLICK_BLOCK)) { return; } MaterialData md = pie.getClickedBlock().getState().getData(); if(md instanceof Openable){ pie.getPlayer().sendMessage("Open: " + ((Openable) md).isOpen()); } }