Files
ForgeMultipart/src/main/scala/codechicken/microblock/IMicroMaterialRender.java
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
688 B
Java
Raw Normal View History

package codechicken.microblock;
import net.minecraft.world.World;
import codechicken.lib.vec.Cuboid6;
/**
* Wrapper class blocks/tiles/parts wanting to use the micro material system to render part of their models.
* <p>
* The accessors keep their Scala names because TMultiPart already declares world/x/y/z/getRenderBounds under exactly
* these names, which is what implements this interface for every part.
*/
public interface IMicroMaterialRender {
/** May be null for inventory rendering. */
World world();
int x();
int y();
int z();
/** Return the bounds of the part for texture mapping side decals like grass. */
Cuboid6 getRenderBounds();
}