diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-08-04 18:29:48 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-08-04 18:29:48 +1000 |
commit | a0d482a7f23bd959ca26466de024d779ec6bf352 (patch) | |
tree | bd08d0cc0ddd57cd7d284853e114ad1bdcb4ff77 /src/Java/miscutil/core/util/debug | |
parent | 67adecfcbb9ffbcc5c111949d1689162605c2703 (diff) | |
download | GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.tar.gz GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.tar.bz2 GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.zip |
+ Added light dependency on LibShapeDraw-1.3.2-dev.jar
+ Added debug rendering to multiblock code, to help assist with assembly.
- Removed Sinter Furnace load code, in prep. for release.
- Disabled the event handler for Logins, no more free Raisin Bread!
% Changed a lot of utility methods into their own class, MathUtils.
Diffstat (limited to 'src/Java/miscutil/core/util/debug')
-rw-r--r-- | src/Java/miscutil/core/util/debug/UtilsRendering.java | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/Java/miscutil/core/util/debug/UtilsRendering.java b/src/Java/miscutil/core/util/debug/UtilsRendering.java index 193e6004a6..d57d92b6ff 100644 --- a/src/Java/miscutil/core/util/debug/UtilsRendering.java +++ b/src/Java/miscutil/core/util/debug/UtilsRendering.java @@ -3,7 +3,7 @@ package miscutil.core.util.debug; import javax.vecmath.Point3d; import libshapedraw.LibShapeDraw; -import libshapedraw.primitive.Color; +import libshapedraw.primitive.ReadonlyColor; import libshapedraw.shape.WireframeCuboid; import miscutil.core.util.Utils; import net.minecraft.block.Block; @@ -29,14 +29,28 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent; public class UtilsRendering { static Tessellator drawBlock = Tessellator.instance; - public static void drawBlockInWorld(int x, int y, int z){ - Utils.LOG_INFO("Drawing Debug Block in world..."); - - LibShapeDraw libShapeDraw = new LibShapeDraw(); - WireframeCuboid box = new WireframeCuboid(x,y,z, x+1,y+1,z+1); - box.setLineStyle(Color.CYAN.copy(), 2.0F, true); - libShapeDraw.addShape(box); - + public static void drawBlockInWorld(final int x, final int y, final int z, final ReadonlyColor colours){ + Thread t = new Thread() { + @Override + public void run() { + LibShapeDraw drawThing = new LibShapeDraw(); + WireframeCuboid box = new WireframeCuboid(x,y,z, x+1,y+1,z+1); + box.setLineStyle(colours.copy(), 2.0F, false); + drawThing.addShape(box); + + Utils.LOG_INFO("Drawing wireframe at: ["+x+"] ["+y+"] ["+z+"]"); + if(true) { + try { + Thread.sleep(1000*10*1); + drawThing.removeShape(box); + } catch (Throwable ie) { + Utils.LOG_INFO("Failed creating render removal timer."); + drawThing.removeShape(box); + } + } + } + }; + t.start(); } public static void renderStuff (int x, int y, int z){ |