Class RenderUtils

java.lang.Object
btw.client.render.util.RenderUtils

@Environment(CLIENT) public class RenderUtils extends Object
  • Constructor Details

    • RenderUtils

      public RenderUtils()
  • Method Details

    • renderStandardBlockWithTexture

      public static void renderStandardBlockWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon texture)
    • renderBlockWithBoundsAndTextureRotation

      public static void renderBlockWithBoundsAndTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    • setRenderBoundsWithAxisAlignment

      public static void setRenderBoundsWithAxisAlignment(RenderBlocks renderBlocks, float fMinMinor, float fMinY, float fMinMajor, float fMaxMinor, float fMaxY, float fMaxMajor, boolean bIAligned)
    • setRenderBoundsWithHorizontalRotation

      public static void setRenderBoundsWithHorizontalRotation(RenderBlocks renderBlocks, int rotation, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
      Rotates render bounds based on provided horizontal rotation

      Horizontal rotation value should be from 0-3

    • setRenderBoundsToBlockFacing

      public static void setRenderBoundsToBlockFacing(RenderBlocks renderBlocks, int iBlockFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    • renderBlockWithTextureRotation

      public static void renderBlockWithTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iBlockFacing)
    • setTextureRotationBasedOnBlockFacing

      public static void setTextureRotationBasedOnBlockFacing(RenderBlocks renderBlocks, int iBlockFacing)
    • renderBlockInteriorWithBoundsAndTextureRotation

      public static void renderBlockInteriorWithBoundsAndTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    • renderMovingBlockWithTexture

      public static void renderMovingBlockWithTexture(RenderBlocks renderBlocks, Block block, World world, int i, int j, int k, Icon texture)
    • renderMovingBlock

      public static void renderMovingBlock(RenderBlocks renderBlocks, Block block, World world, int i, int j, int k)
    • renderMovingBlockWithMetadata

      public static void renderMovingBlockWithMetadata(RenderBlocks renderBlocks, Block block, IBlockAccess blockAccess, int i, int j, int k, int iMetadata)
    • renderInvBlockWithTexture

      public static void renderInvBlockWithTexture(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, Icon texture)
    • renderInvBlockWithMetadata

      public static void renderInvBlockWithMetadata(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, int iMetaData)
    • renderBlockFullBrightWithTexture

      public static boolean renderBlockFullBrightWithTexture(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Icon texture)
    • renderInvBlockFullBrightWithTexture

      public static void renderInvBlockFullBrightWithTexture(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, Icon texture)
    • shouldRenderNeighborFullFaceSide

      public static boolean shouldRenderNeighborFullFaceSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSide)
    • shouldRenderNeighborHalfSlabSide

      public static boolean shouldRenderNeighborHalfSlabSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSlabSide, boolean bNeighborUpsideDown)
    • shouldRenderLegacyModel

      public static boolean shouldRenderLegacyModel()
      true if the client wants to render legacy FC models
    • drawSecondaryCraftingOutputIndicator

      public static void drawSecondaryCraftingOutputIndicator(Minecraft mc, int iDisplayX, int iDisplayY)