diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-13 18:12:27 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-13 18:12:27 +0300 |
| commit | f965cf88704f1e5e674d98308cbe0f4451d7edeb (patch) | |
| tree | 037091498442b0e589166c02d4342cbb7828dca4 /common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java | |
| parent | dbe39cf7e6ddc6c6fd1e639b495a8ac568e081a9 (diff) | |
Fixed stuff
Diffstat (limited to 'common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java b/common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java index daa3147..075b978 100644 --- a/common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java +++ b/common/darkknight/jewelrycraft/renders/TileEntityDisplayerRender.java @@ -134,7 +134,7 @@ public class TileEntityDisplayerRender extends TileEntitySpecialRenderer GL11.glPushMatrix(); GL11.glEnable(GL11.GL_TEXTURE_2D); GL11.glScalef(var17*70F, 1F, 0F); - fontrenderer.drawString(par2Str.replaceFirst("§0", "§r").replaceFirst("§1", "§r").replaceFirst("§2", "§r").replaceFirst("§3", "§r").replaceFirst("§4", "§r").replaceFirst("§5", "§r").replaceFirst("§6", "§r").replaceFirst("§7", "§r").replaceFirst("§8", "§r").replaceFirst("§9", "§r").replaceFirst("§a", "§r").replaceFirst("§b", "§r").replaceFirst("§c", "§r").replaceFirst("§d", "§r").replaceFirst("§e", "§r").replaceFirst("§f", "§r"), -j, 0, 65536 * (red/2) + 256 * (green/2) + blue/2); + fontrenderer.drawString(par2Str.replaceFirst("§0", "§r").replaceFirst("§1", "§r").replaceFirst("§2", "§r").replaceFirst("§3", "§r").replaceFirst("§4", "§r").replaceFirst("§5", "§r").replaceFirst("§6", "§r").replaceFirst("§7", "§r").replaceFirst("§8", "§r").replaceFirst("§9", "§r").replaceFirst("§a", "§r").replaceFirst("§b", "§r").replaceFirst("§c", "§r").replaceFirst("§d", "§r").replaceFirst("§e", "§r").replaceFirst("§f", "§r"), -j, 0, 65536 * (red/2) + 256 * (green/2) + blue/2); GL11.glPopMatrix(); GL11.glTranslatef((float)x - 1f, (float)y - 1f, (float)z - 1F); GL11.glScalef(var17*70F, 1F, 0F); @@ -146,85 +146,85 @@ public class TileEntityDisplayerRender extends TileEntitySpecialRenderer public void replaceEnumEnchValues(String str, int color) { - if(str.contains("§0")) + if(str.contains("§0")) { color = Color.BLACK.getRGB(); - str.replace("§0", ""); + str.replace("§0", ""); } - if(str.contains("§1")) + if(str.contains("§1")) { color = 85; - str.replace("§1", ""); + str.replace("§1", ""); } - if(str.contains("§2")) + if(str.contains("§2")) { color = 17920; - str.replace("§2", ""); + str.replace("§2", ""); } - if(str.contains("§3")) + if(str.contains("§3")) { color = 1336183; - str.replace("§3", ""); + str.replace("§3", ""); } - if(str.contains("§4")) + if(str.contains("§4")) { color = 4587520; - str.replace("§4", ""); + str.replace("§4", ""); } - if(str.contains("§5")) + if(str.contains("§5")) { color = 5701759; - str.replace("§5", ""); + str.replace("§5", ""); } - if(str.contains("§6")) + if(str.contains("§6")) { color = 16762880; - str.replace("§6", ""); + str.replace("§6", ""); } - if(str.contains("§7")) + if(str.contains("§7")) { color = Color.GRAY.getRGB(); - str.replace("§7", ""); + str.replace("§7", ""); } - if(str.contains("§8")) + if(str.contains("§8")) { color = Color.DARK_GRAY.getRGB(); - str.replace("§8", ""); + str.replace("§8", ""); } - if(str.contains("§9")) + if(str.contains("§9")) { color = Color.BLUE.getRGB(); - str.replace("§9", ""); + str.replace("§9", ""); } - if(str.contains("§a")) + if(str.contains("§a")) { color = Color.GREEN.getRGB(); - str.replace("§a", ""); + str.replace("§a", ""); } - if(str.contains("§b")) + if(str.contains("§b")) { color = Color.CYAN.getRGB(); - str.replace("§b", ""); + str.replace("§b", ""); } - if(str.contains("§c")) + if(str.contains("§c")) { color = Color.RED.getRGB(); - str.replace("§c", ""); + str.replace("§c", ""); } - if(str.contains("§d")) + if(str.contains("§d")) { color = 11665663; - str.replace("§d", ""); + str.replace("§d", ""); } - if(str.contains("§e")) + if(str.contains("§e")) { color = Color.YELLOW.getRGB(); - str.replace("§e", ""); + str.replace("§e", ""); } - if(str.contains("§f")) + if(str.contains("§f")) { color = Color.WHITE.getRGB(); - str.replace("§f", ""); + str.replace("§f", ""); } } -} +}
\ No newline at end of file |
