/* * 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 * * © 2015-2016 Ellpeck */ package de.ellpeck.actuallyadditions.mod.booklet.entry; import de.ellpeck.actuallyadditions.api.booklet.IBookletChapter; import java.util.ArrayList; import java.util.List; public class BookletEntryAllSearch extends BookletEntry{ public ArrayList allChapters = new ArrayList(); public BookletEntryAllSearch(String unlocalizedName){ super(unlocalizedName); } @Override public void setChapters(List chapters){ this.allChapters = (ArrayList)chapters; this.chapters = (ArrayList)this.allChapters.clone(); } @SuppressWarnings("unchecked") @Override public void addChapter(IBookletChapter chapter){ this.allChapters.add(chapter); this.chapters = (ArrayList)this.allChapters.clone(); } }