ActuallyAdditions/src/main/java/ellpeck/actuallyadditions/booklet/BookletEntryAllSearch.java

30 lines
920 B
Java
Raw Normal View History

2015-08-29 15:40:12 +02:00
/*
* 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://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2015-11-02 20:55:19 +01:00
* © 2015 Ellpeck
2015-08-29 15:40:12 +02:00
*/
2015-08-29 23:01:13 +02:00
package ellpeck.actuallyadditions.booklet;
2015-08-29 15:40:12 +02:00
import java.util.ArrayList;
public class BookletEntryAllSearch extends BookletIndexEntry{
public ArrayList<BookletChapter> allChapters = new ArrayList<BookletChapter>();
public BookletEntryAllSearch(String unlocalizedName){
super(unlocalizedName);
}
@SuppressWarnings("unchecked")
@Override
public void addChapter(BookletChapter chapter){
this.allChapters.add(chapter);
this.chapters = (ArrayList<BookletChapter>)this.allChapters.clone();
}
}