Class BlockRenderer

java.lang.Object
codechicken.lib.render.BlockRenderer

public class BlockRenderer extends Object
  • Field Details

  • Constructor Details

    • BlockRenderer

      public BlockRenderer()
  • Method Details

    • renderFullBlock

      public static void renderFullBlock(CCRenderState state, int sideMask)
    • renderFaces

      public static void renderFaces(CCRenderState state, int sideMask)
      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

      public static void renderCuboid(CCRenderState state, Cuboid6 bounds, int sideMask)
      Renders faces of a cuboid with texture coordinates mapped to match a standard minecraft block
      Parameters:
      bounds - The bounding cuboid to render
      sideMask - A mask of faces not to render