/* * This file ("BookletEntryAllSearch.java") is part of the Actually Additions Mod for Minecraft. * It is created and owned by Ellpeck and distributed * under the Actually Additions License to be found at * http://ellpeck.de/actaddlicense/ * View the source code at https://github.com/Ellpeck/ActuallyAdditions * * © 2016 Ellpeck */ package de.ellpeck.actuallyadditions.booklet.entry; import de.ellpeck.actuallyadditions.booklet.chapter.BookletChapter; import java.util.ArrayList; public class BookletEntryAllSearch extends BookletEntry{ public ArrayList allChapters = new ArrayList(); public BookletEntryAllSearch(String unlocalizedName){ super(unlocalizedName); } @SuppressWarnings("unchecked") @Override public void addChapter(BookletChapter chapter){ this.allChapters.add(chapter); this.chapters = (ArrayList)this.allChapters.clone(); } }