Modules/Display
On Click
All the display entity allow you to check when a player interacts with it. We can add a onClick listener by using .onClick(consumer).
This will provide EntityInteract. The EntityInteract class contains the player who interacted with the entity and ClickType.
BlockDisplay display = new BlockDisplay(spawnLocation);
display.onClick( event -> {
   event.getPlayer().sendMessage(event.getClickType().name());
});