Package codechicken.lib.render
Class BlockRenderer
java.lang.Object
codechicken.lib.render.BlockRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrenderCuboid(CCRenderState state, Cuboid6 bounds, int sideMask) Renders faces of a cuboid with texture coordinates mapped to match a standard minecraft blockstatic voidrenderFaces(CCRenderState state, int sideMask) Renders faces of a block-like model based on a sideMask.static voidrenderFullBlock(CCRenderState state, int sideMask)
-
Field Details
-
fullBlocks
-
-
Constructor Details
-
BlockRenderer
public BlockRenderer()
-
-
Method Details
-
renderFullBlock
-
renderFaces
Renders faces of a block-like model based on a sideMask. Eg for side 2, verts 8-11 will be rendered- Parameters:
sideMask- A mask of faces not to render
-
renderCuboid
Renders faces of a cuboid with texture coordinates mapped to match a standard minecraft block- Parameters:
bounds- The bounding cuboid to rendersideMask- A mask of faces not to render
-