Changed micro material rendering to take a part based interface instead of an actual part to allow other non-microblock things to use the renderer.

Added IMaskedRedstoneConnect for redstone parts with special connection modes
Added null check to TMultiPart.world().
Fixed hollow microblocks not rendering hollow on placement
Fixed a problem with packet send order on part remove.
This commit is contained in:
Chicken Bones committed 2013-08-15 21:31:15 +10:00
1 parent 5cd7f495d5
commit f9eb162770
10 files changed
+74 -37

No files matched your search

@@ -0,0 +1,19 @@
package codechicken.microblock
import codechicken.lib.vec.Cuboid6
import net.minecraft.world.World
trait IMicroMaterialRender {
/**
* May be null for inventory rendering.
*/
def world():World
def x():Int
def y():Int
def z():Int
/**
* Return the bounds of the part for texture mapping side decals like grass
*/
def getRenderBounds():Cuboid6
}