diff options
author | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
---|---|---|
committer | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
commit | a1504799f44ba2debdfef06317f24e7f9c1129d6 (patch) | |
tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/render/GT_RenderUtil.java | |
parent | b803f59de5a66fcb4ef53e117b912fbbc2841392 (diff) | |
download | GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2 GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip |
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/render/GT_RenderUtil.java')
-rw-r--r-- | main/java/gregtech/common/render/GT_RenderUtil.java | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/main/java/gregtech/common/render/GT_RenderUtil.java b/main/java/gregtech/common/render/GT_RenderUtil.java index 5eb73c4eca..9a2fd8c259 100644 --- a/main/java/gregtech/common/render/GT_RenderUtil.java +++ b/main/java/gregtech/common/render/GT_RenderUtil.java @@ -1,39 +1,39 @@ -/* 1: */ package gregtech.common.render;
-/* 2: */
-/* 3: */ import net.minecraft.client.renderer.Tessellator;
-/* 4: */ import net.minecraft.util.IIcon;
-/* 5: */
-/* 6: */ public class GT_RenderUtil
-/* 7: */ {
-/* 8: */ public static void renderItemIcon(IIcon icon, double size, double z, float nx, float ny, float nz)
-/* 9: */ {
-/* 10: 8 */ renderItemIcon(icon, 0.0D, 0.0D, size, size, z, nx, ny, nz);
-/* 11: */ }
-/* 12: */
-/* 13: */ public static void renderItemIcon(IIcon icon, double xStart, double yStart, double xEnd, double yEnd, double z, float nx, float ny, float nz)
-/* 14: */ {
-/* 15:12 */ if (icon == null) {
-/* 16:12 */ return;
-/* 17: */ }
-/* 18:13 */ Tessellator.instance.startDrawingQuads();
-/* 19:14 */ Tessellator.instance.setNormal(nx, ny, nz);
-/* 20:15 */ if (nz > 0.0F)
-/* 21: */ {
-/* 22:16 */ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
-/* 23:17 */ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
-/* 24:18 */ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
-/* 25:19 */ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
-/* 26: */ }
-/* 27: */ else
-/* 28: */ {
-/* 29:21 */ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
-/* 30:22 */ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
-/* 31:23 */ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
-/* 32:24 */ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
-/* 33: */ }
-/* 34:26 */ Tessellator.instance.draw();
-/* 35: */ }
-/* 36: */ }
+package gregtech.common.render;
+
+import net.minecraft.client.renderer.Tessellator;
+import net.minecraft.util.IIcon;
+
+public class GT_RenderUtil
+{
+ public static void renderItemIcon(IIcon icon, double size, double z, float nx, float ny, float nz)
+ {
+ renderItemIcon(icon, 0.0D, 0.0D, size, size, z, nx, ny, nz);
+ }
+
+ public static void renderItemIcon(IIcon icon, double xStart, double yStart, double xEnd, double yEnd, double z, float nx, float ny, float nz)
+ {
+ if (icon == null) {
+ return;
+ }
+ Tessellator.instance.startDrawingQuads();
+ Tessellator.instance.setNormal(nx, ny, nz);
+ if (nz > 0.0F)
+ {
+ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
+ }
+ else
+ {
+ Tessellator.instance.addVertexWithUV(xStart, yEnd, z, icon.getMinU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xEnd, yEnd, z, icon.getMaxU(), icon.getMaxV());
+ Tessellator.instance.addVertexWithUV(xEnd, yStart, z, icon.getMaxU(), icon.getMinV());
+ Tessellator.instance.addVertexWithUV(xStart, yStart, z, icon.getMinU(), icon.getMinV());
+ }
+ Tessellator.instance.draw();
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|