/** * Create a clone of this event with the given stage. * * @param stage the stage * @return a new event */ public EditSessionEvent clone(Stage stage) { return new EditSessionEvent(world, actor, maxBlocks, stage); }
@Override public EditSession getEditSession(World world, int maxBlocks, BlockBag blockBag, Player player) { if (WorldEdit.getInstance().getConfiguration().traceUnflushedSessions) { return new TracedEditSession(eventBus, world, maxBlocks, blockBag, new EditSessionEvent(world, player, maxBlocks, null)); } return new EditSession(eventBus, world, maxBlocks, blockBag, new EditSessionEvent(world, player, maxBlocks, null)); }