Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //If the player is looking at the Power Generator block, print this on screen
- if (block == DecimationBlocks.blockPowergenerator) {
- ScaledResolution res = new ScaledResolution(mc, mc.displayWidth, mc.displayHeight);
- FontRenderer fr = mc.fontRendererObj;
- String text = "Right-click to charge battery";
- int width = fr.getStringWidth(text);
- int x = (res.getScaledWidth() - width) / 2;
- int y = res.getScaledHeight() / 2 - 7 - fr.FONT_HEIGHT + 30;
- //The string I want to rescale up by 2
- fr.drawString(text, x, y, 0xFFFFFF);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement