Allow for a custom fontrenderer for a book in general and propagate it to draw calls instead of having 3 places where the fontrenderer is declared

This commit is contained in:
Bernhard Bonigl committed 2016-04-10 18:28:38 +02:00
1 parent 34e251b49b
commit e3abffafea
7 files changed
+28 -20

No files matched your search

@@ -1,6 +1,7 @@
package slimeknights.mantle.client.book.data;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.stats.StatFileWriter;
import net.minecraft.util.ResourceLocation;
@@ -31,6 +32,7 @@ public class BookData implements IDataItem {
public transient AppearanceData appearance = new AppearanceData();
public transient ArrayList<ItemStackData.ItemLink> itemLinks = new ArrayList<>();
public transient HashMap<String, String> strings = new HashMap<>();
public transient FontRenderer fontRenderer;
protected final transient ArrayList<BookTransformer> transformers = new ArrayList<>();