From 6f74646869a6752470ba7b6e5bdfed2d324ae246 Mon Sep 17 00:00:00 2001 From: CptSpaceToaster Date: Sun, 1 Mar 2015 01:33:43 -0500 Subject: [PATCH] SUDOKU --- .../chisel/client/render/CTM.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/main/java/com/cricketcraft/chisel/client/render/CTM.java b/src/main/java/com/cricketcraft/chisel/client/render/CTM.java index e5ec7bc6..807a847b 100644 --- a/src/main/java/com/cricketcraft/chisel/client/render/CTM.java +++ b/src/main/java/com/cricketcraft/chisel/client/render/CTM.java @@ -5,6 +5,44 @@ import net.minecraft.world.IBlockAccess; import net.minecraftforge.common.util.ForgeDirection; import com.cricketcraft.chisel.api.IFacade; +/** + * The CTM renderer will draw the block's FACE using by assembling 4 quadrants from the 5 available block + * textures. The normal Texture.png is the blocks "unconnected" texture, and is used when CTM is disabled or the block + * has nothing to connect to. This texture has all of the outside corner quadrants The texture-ctm.png contains the + * rest of the quadrants. + * + * ┌─────────────────┐ ┌────────────────────────────────┐ + * │ texture.png │ │ texture-ctm.png │ + * │ ╔══════╤══════╗ │ │ │ + * │ ║ │ ║ │ │ │ ║ │ ║ │ + * │ ║ 16 │ 17 ║ │ │ 0 │ 1 ║ 2 │ 3 ║ │ + * │ ╟──────┼──────╢ │ │ ──────┼───────╟──────┼──────╢ │ + * │ ║ │ ║ │ │ │ ║ │ ║ │ + * │ ║ 18 │ 19 ║ │ │ 4 │ 5 ║ 6 │ 7 ║ │ + * │ ╚══════╧══════╝ │ │ ══════╤═══════╝──────┼──────╚ │ + * └─────────────────┘ │ │ │ │ │ + * │ 8 │ 9 │ 10 │ 11 │ + * │ ──────┼───────┼──────┼────── │ + * │ │ │ │ │ + * │ 12 │ 13 │ 14 │ 15 │ + * │ ══════╧═══════╗ ╔ │ + * └────────────────────────────────┘ + * + * combining { 16, 9, 18, 13}, we can generate a connected texture! + * ╔══════╤═══════ + * ║ │ + * ║ 16 │ 9 + * ╟──────┼────── + * ║ │ + * ║ 18 │ 13 + * ╚══════╧═══════ + * + * HAVE FUN! + * -CptRageToaster- + * + * TODO: Everything + */ + public class CTM {