303

modloader osd example

303
Mar 22nd, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. public class mod_Arrows303 extends BaseMod {
  2.     public mod_Arrows303() {
  3.         ModLoader.SetInGameHook(this, true, false);
  4.     }
  5.  
  6.     public void OnTickInGame(Minecraft minecraft) {
  7.         String s1 = "moo!";
  8.  
  9.         ScaledResolution scaledresolution1 = new ScaledResolution(minecraft.displayWidth, minecraft.displayHeight);
  10.         int w = scaledresolution1.getScaledWidth();
  11.         int k = minecraft.fontRenderer.getStringWidth(s1);
  12.  
  13.         minecraft.fontRenderer.drawStringWithShadow(s1, 2, w - k -2, 0xffffff);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment