Code example for LinkedList

Methods: get, size

0
     * @param newBlockBag 
     * @param player 
     * @return whether anything was redone 
     */ 
    public EditSession redo(BlockBag newBlockBag, LocalPlayer player) {
        if (historyPointer < history.size()) {
            EditSession editSession = history.get(historyPointer);
            EditSession newEditSession = WorldEdit.getInstance().getEditSessionFactory()
                    .getEditSession(editSession.getWorld(), -1, newBlockBag, player);
            newEditSession.enableQueue();
            newEditSession.setFastMode(fastMode);
            editSession.redo(newEditSession);
            ++historyPointer;
            return editSession;
        } 
 
        return null; 
    } 
 
    /** 
     * Get the region selector for defining the selection. If the selection