@EventHandler
public void onInventoryClickEvent(InventoryClickEvent event) {
if (event.getInventory().getType() == InventoryType.ANVIL) {
event.setCancelled(true);
}
}
#Nunca usei da Enchanting table não sei se isso vai funcionar:
@EventHandler
public void onInventoryClickEvent(PrepareItemEnchantEvent event) {
event.setCancelled(true);
}