Created
August 14, 2015 20:38
-
-
Save tterrag1098/646c6d0be45562d92e3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SpecialFont extends FontRenderer { | |
private FontRenderer wrapped; | |
private ItemStack stack = EnderFood.ENDERIOS.getStack(); | |
public SpecialFont(FontRenderer wrapped) { | |
super(Minecraft.getMinecraft().gameSettings, new ResourceLocation("textures/font/ascii.png"), Minecraft.getMinecraft().renderEngine, false); | |
this.wrapped = wrapped; | |
} | |
@Override | |
public int drawString(String p_85187_1_, int p_85187_2_, int p_85187_3_, int p_85187_4_, boolean p_85187_5_) { | |
return super.drawString(p_85187_1_, p_85187_2_, p_85187_3_, p_85187_4_, p_85187_5_); | |
} | |
} | |
private SpecialFont fr; | |
@Override | |
public FontRenderer getFontRenderer(ItemStack stack) { | |
if (fr == null) { | |
fr = new SpecialFont(Minecraft.getMinecraft().fontRenderer); | |
} | |
return fr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment