*/
public class EnchantmentTable extends ViewedBlockComponent {
@Override
public boolean open(Player player) {
EnchantmentTableInventory inventory = new EnchantmentTableInventory();
EnchantmentTableOpenEvent event = player.getEngine().getEventManager().callEvent(new EnchantmentTableOpenEvent(this, inventory, player));
if (!event.isCancelled()) {
player.get(WindowHolder.class).openWindow(new EnchantmentTableWindow(player, this, inventory));
return true;
}
return false;
}