Package btw.client.render.util
Class RenderUtils
java.lang.Object
btw.client.render.util.RenderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawSecondaryCraftingOutputIndicator(Minecraft mc, int iDisplayX, int iDisplayY) static booleanrenderBlockFullBrightWithTexture(RenderBlocks renderBlocks, IBlockAccess blockAccess, int i, int j, int k, Icon texture) static voidrenderBlockInteriorWithBoundsAndTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ) static voidrenderBlockWithBoundsAndTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ) static voidrenderBlockWithTextureRotation(RenderBlocks renderBlocks, Block block, int i, int j, int k, int iBlockFacing) static voidrenderInvBlockFullBrightWithTexture(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, Icon texture) static voidrenderInvBlockWithMetadata(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, int iMetaData) static voidrenderInvBlockWithTexture(RenderBlocks renderBlocks, Block block, float fXOffset, float fYOffset, float fZOffset, Icon texture) static voidrenderMovingBlock(RenderBlocks renderBlocks, Block block, World world, int i, int j, int k) static voidrenderMovingBlockWithMetadata(RenderBlocks renderBlocks, Block block, IBlockAccess blockAccess, int i, int j, int k, int iMetadata) static voidrenderMovingBlockWithTexture(RenderBlocks renderBlocks, Block block, World world, int i, int j, int k, Icon texture) static voidrenderStandardBlockWithTexture(RenderBlocks renderBlocks, Block block, int i, int j, int k, Icon texture) static voidsetRenderBoundsToBlockFacing(RenderBlocks renderBlocks, int iBlockFacing, float minX, float minY, float minZ, float maxX, float maxY, float maxZ) static voidsetRenderBoundsWithAxisAlignment(RenderBlocks renderBlocks, float fMinMinor, float fMinY, float fMinMajor, float fMaxMinor, float fMaxY, float fMaxMajor, boolean bIAligned) static voidsetRenderBoundsWithHorizontalRotation(RenderBlocks renderBlocks, int rotation, float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Rotates render bounds based on provided horizontal rotationstatic voidsetTextureRotationBasedOnBlockFacing(RenderBlocks renderBlocks, int iBlockFacing) static booleantrueif the client wants to render legacy FC modelsstatic booleanshouldRenderNeighborFullFaceSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSide) static booleanshouldRenderNeighborHalfSlabSide(IBlockAccess blockAccess, int i, int j, int k, int iNeighborSlabSide, boolean bNeighborUpsideDown)
-
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 rotationHorizontal 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()trueif the client wants to render legacy FC models -
drawSecondaryCraftingOutputIndicator
-