net.minecraft.client.gui.GuiErrorScreen Java Examples

The following examples show how to use net.minecraft.client.gui.GuiErrorScreen. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: I18nUtils.java    From I18nUpdateMod with MIT License 5 votes vote down vote up
@Override
public void drawScreen(GuiErrorScreen errorScreen, FontRenderer fontRenderer, int mouseRelX, int mouseRelY, float tickTime) {
    final List<String> text = fontRenderer.listFormattedStringToWidth("本地仓库路径无效,请更改配置文件中的本地资源包仓库地址。", errorScreen.width - 80);
    int yOffset = 50;
    for (String sentence : text) {
        errorScreen.drawCenteredString(fontRenderer, sentence, errorScreen.width / 2, yOffset, 0xFFFFFF);
        yOffset += 10;
    }
}
 
Example #2
Source File: I18nUtils.java    From I18nUpdateMod with MIT License 4 votes vote down vote up
@Override
public void initGui(GuiErrorScreen errorScreen, FontRenderer fontRenderer) {
}