BlockState state = center.getRelative(i, 0, j).getState();
state.setType(Material.ENDER_PORTAL);
blocks.add(state);
}
}
if (!EventFactory.callEvent(new EntityCreatePortalEvent(player, blocks, PortalType.ENDER)).isCancelled()) {
for (BlockState state : blocks) {
state.update(true);
}
}
}