ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/booklet/entry/BookletEntryAllSearch.java

39 lines
1.2 KiB
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
2016-01-03 16:05:51 +01:00
* http://ellpeck.de/actaddlicense/
2015-08-29 15:40:12 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-01-03 16:05:51 +01:00
* © 2016 Ellpeck
2015-08-29 15:40:12 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.booklet.entry;
2016-01-05 14:57:50 +01:00
import de.ellpeck.actuallyadditions.api.booklet.IBookletChapter;
2015-08-29 15:40:12 +02:00
import java.util.ArrayList;
2016-01-05 14:57:50 +01:00
import java.util.List;
2015-08-29 15:40:12 +02:00
public class BookletEntryAllSearch extends BookletEntry{
2015-08-29 15:40:12 +02:00
2016-01-05 14:57:50 +01:00
public ArrayList<IBookletChapter> allChapters = new ArrayList<IBookletChapter>();
2015-08-29 15:40:12 +02:00
public BookletEntryAllSearch(String unlocalizedName){
super(unlocalizedName);
}
@SuppressWarnings("unchecked")
@Override
public void addChapter(IBookletChapter chapter){
2015-08-29 15:40:12 +02:00
this.allChapters.add(chapter);
2016-01-05 14:57:50 +01:00
this.chapters = (ArrayList<IBookletChapter>)this.allChapters.clone();
}
@Override
public void setChapters(List<IBookletChapter> chapters){
this.allChapters = (ArrayList<IBookletChapter>)chapters;
this.chapters = (ArrayList<IBookletChapter>)this.allChapters.clone();
2015-08-29 15:40:12 +02:00
}
}