2013-08-15 21:30:32 +10:00
|
|
|
package codechicken.microblock
|
|
|
|
|
|
|
|
|
|
import codechicken.lib.vec.Cuboid6
|
|
|
|
|
import net.minecraft.world.World
|
|
|
|
|
|
2013-09-25 12:56:40 +10:00
|
|
|
/**
|
|
|
|
|
* Wrapper class blocks/tiles/parts wanting to use the micro material system to render part of their models.
|
|
|
|
|
*/
|
2013-08-15 21:30:32 +10:00
|
|
|
trait IMicroMaterialRender {
|
|
|
|
|
/**
|
|
|
|
|
* May be null for inventory rendering.
|
|
|
|
|
*/
|
2013-12-30 13:52:08 +10:00
|
|
|
def world:World
|
|
|
|
|
def x:Int
|
|
|
|
|
def y:Int
|
|
|
|
|
def z:Int
|
2013-08-15 21:30:32 +10:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return the bounds of the part for texture mapping side decals like grass
|
|
|
|
|
*/
|
2013-12-30 13:52:08 +10:00
|
|
|
def getRenderBounds:Cuboid6
|
2013-08-15 21:30:32 +10:00
|
|
|
}
|