Class RenderBlocks

java.lang.Object
net.minecraft.src.RenderBlocks

public class RenderBlocks extends Object
  • Field Details

    • blockAccess

      public IBlockAccess blockAccess
      The IBlockAccess used by this instance of RenderBlocks
    • fancyGrass

      public static boolean fancyGrass
      Fancy grass side matching biome
    • useInventoryTint

      public boolean useInventoryTint
    • colorRedTopLeft

      public float colorRedTopLeft
      Red color value for the top left corner
    • colorRedBottomLeft

      public float colorRedBottomLeft
      Red color value for the bottom left corner
    • colorRedBottomRight

      public float colorRedBottomRight
      Red color value for the bottom right corner
    • colorRedTopRight

      public float colorRedTopRight
      Red color value for the top right corner
    • colorGreenTopLeft

      public float colorGreenTopLeft
      Green color value for the top left corner
    • colorGreenBottomLeft

      public float colorGreenBottomLeft
      Green color value for the bottom left corner
    • colorGreenBottomRight

      public float colorGreenBottomRight
      Green color value for the bottom right corner
    • colorGreenTopRight

      public float colorGreenTopRight
      Green color value for the top right corner
    • colorBlueTopLeft

      public float colorBlueTopLeft
      Blue color value for the top left corner
    • colorBlueBottomLeft

      public float colorBlueBottomLeft
      Blue color value for the bottom left corner
    • colorBlueBottomRight

      public float colorBlueBottomRight
      Blue color value for the bottom right corner
    • colorBlueTopRight

      public float colorBlueTopRight
      Blue color value for the top right corner
  • Constructor Details

    • RenderBlocks

      public RenderBlocks(IBlockAccess par1IBlockAccess)
    • RenderBlocks

      public RenderBlocks()
  • Method Details

    • setOverrideBlockTexture

      public void setOverrideBlockTexture(Icon par1Icon)
      Sets overrideBlockTexture
    • clearOverrideBlockTexture

      public void clearOverrideBlockTexture()
      Clear override block texture
    • hasOverrideBlockTexture

      public boolean hasOverrideBlockTexture()
    • setRenderBounds

      public void setRenderBounds(double par1, double par3, double par5, double par7, double par9, double par11)
      Sets the bounding box for the block to draw in, e.g. 0.25-0.75 on all axes for a half-size, centered block.
    • setRenderBoundsFromBlock

      public void setRenderBoundsFromBlock(Block par1Block)
      Like setRenderBounds, but automatically pulling the bounds from the given Block.
    • overrideBlockBounds

      public void overrideBlockBounds(double par1, double par3, double par5, double par7, double par9, double par11)
      Like setRenderBounds, but locks the values so that RenderBlocks won't change them. If you use this, you must call unlockBlockBounds after you finish rendering!
    • unlockBlockBounds

      public void unlockBlockBounds()
      Unlocks the visual bounding box so that RenderBlocks can change it again.
    • renderBlockUsingTexture

      public void renderBlockUsingTexture(Block par1Block, int par2, int par3, int par4, Icon par5Icon)
      Renders a block using the given texture instead of the block's own default texture
    • renderBlockAllFaces

      public void renderBlockAllFaces(Block par1Block, int par2, int par3, int par4)
      Render all faces of a block
    • renderBlockEndPortalFrame

      public boolean renderBlockEndPortalFrame(BlockEndPortalFrame par1BlockEndPortalFrame, int par2, int par3, int par4)
      // +++START EDIT+++ // ---END EDIT--- Render BlockEndPortalFrame
    • renderBlockBed

      public boolean renderBlockBed(Block par1Block, int par2, int par3, int par4)
      render a bed at the given coordinates
    • renderBlockBrewingStand

      public boolean renderBlockBrewingStand(BlockBrewingStand par1BlockBrewingStand, int par2, int par3, int par4)
      Render BlockBrewingStand
    • renderBlockCauldron

      public boolean renderBlockCauldron(BlockCauldron par1BlockCauldron, int par2, int par3, int par4)
      Render block cauldron
    • renderBlockFlowerpot

      public boolean renderBlockFlowerpot(BlockFlowerPot par1BlockFlowerPot, int par2, int par3, int par4)
      Renders flower pot
    • renderBlockTorch

      public boolean renderBlockTorch(Block par1Block, int par2, int par3, int par4)
      Renders a torch block at the given coordinates
    • renderBlockRepeater

      public boolean renderBlockRepeater(BlockRedstoneRepeater par1BlockRedstoneRepeater, int par2, int par3, int par4)
      render a redstone repeater at the given coordinates
    • renderBlockRedstoneLogic

      public boolean renderBlockRedstoneLogic(BlockRedstoneLogic par1BlockRedstoneLogic, int par2, int par3, int par4)
    • renderBlockRedstoneLogicMetadata

      public void renderBlockRedstoneLogicMetadata(BlockRedstoneLogic par1BlockRedstoneLogic, int par2, int par3, int par4, int par5)
    • renderPistonBaseAllFaces

      public void renderPistonBaseAllFaces(Block par1Block, int par2, int par3, int par4)
      Render all faces of the piston base
    • renderPistonBase

      public boolean renderPistonBase(Block par1Block, int par2, int par3, int par4, boolean par5)
      renders a block as a piston base
    • renderPistonExtensionAllFaces

      public void renderPistonExtensionAllFaces(Block par1Block, int par2, int par3, int par4, boolean par5)
      Render all faces of the piston extension
    • renderPistonExtension

      public boolean renderPistonExtension(Block par1Block, int par2, int par3, int par4, boolean par5)
      renders the pushing part of a piston
    • renderBlockLever

      public boolean renderBlockLever(Block par1Block, int par2, int par3, int par4)
      Renders a lever block at the given coordinates
    • renderBlockTripWireSource

      public boolean renderBlockTripWireSource(Block par1Block, int par2, int par3, int par4)
      Renders a trip wire source block at the given coordinates
    • renderBlockTripWire

      public boolean renderBlockTripWire(Block par1Block, int par2, int par3, int par4)
      Renders a trip wire block at the given coordinates
    • renderBlockFire

      public boolean renderBlockFire(BlockFire par1BlockFire, int par2, int par3, int par4)
      Renders a fire block at the given coordinates
    • renderBlockRedstoneWire

      public boolean renderBlockRedstoneWire(Block par1Block, int par2, int par3, int par4)
      Renders a redstone wire block at the given coordinates
    • renderRedstoneWireWithState

      public boolean renderRedstoneWireWithState(Block block, int x, int y, int z, int power, int connections)
    • renderBlockMinecartTrack

      public boolean renderBlockMinecartTrack(BlockRailBase par1BlockRailBase, int par2, int par3, int par4)
      Renders a minecart track block at the given coordinates
    • renderBlockLadder

      public boolean renderBlockLadder(Block par1Block, int par2, int par3, int par4)
      Renders a ladder block at the given coordinates
    • renderBlockVine

      public boolean renderBlockVine(Block par1Block, int par2, int par3, int par4)
      Render block vine
    • renderBlockPane

      public boolean renderBlockPane(BlockPane par1BlockPane, int par2, int par3, int par4)
    • renderCrossedSquares

      public boolean renderCrossedSquares(Block par1Block, int par2, int par3, int par4, boolean withOffset)
      Renders any block requiring croseed squares such as reeds, flowers, and mushrooms
      Parameters:
      withOffset - When true, offsets the block slightly based on provided coordinates
    • renderCrossedSquares

      public boolean renderCrossedSquares(Block par1Block, int par2, int par3, int par4)
    • renderBlockStem

      public boolean renderBlockStem(Block par1Block, int par2, int par3, int par4)
      Render block stem
    • renderBlockCrops

      public boolean renderBlockCrops(Block par1Block, int par2, int par3, int par4)
      Render block crops
    • renderTorchAtAngle

      public void renderTorchAtAngle(Block par1Block, double par2, double par4, double par6, double par8, double par10, int par12)
      Renders a torch at the given coordinates, with the base slanting at the given delta
    • drawCrossedSquares

      public void drawCrossedSquares(Block par1Block, int par2, double par3, double par5, double par7, float par9)
      Utility function to draw crossed swuares
    • renderBlockStemSmall

      public void renderBlockStemSmall(Block par1Block, int par2, double par3, double par5, double par7, double par9)
      Render block stem small
    • renderBlockLilyPad

      public boolean renderBlockLilyPad(Block par1Block, int par2, int par3, int par4)
      Render BlockLilyPad
    • renderBlockStemBig

      public void renderBlockStemBig(BlockStem par1BlockStem, int par2, int par3, double par4, double par6, double par8, double par10)
      Render block stem big
    • renderBlockCropsImpl

      public void renderBlockCropsImpl(Block par1Block, int par2, double par3, double par5, double par7)
      Render block crops implementation
    • renderBlockSandFalling

      public void renderBlockSandFalling(Block par1Block, World par2World, int par3, int par4, int par5, int par6)
      Renders a falling sand block
    • renderStandardBlock

      public boolean renderStandardBlock(Block block, int x, int y, int z)
      Renders a standard cube block at the given coordinates
    • renderBlockLog

      public boolean renderBlockLog(Block par1Block, int par2, int par3, int par4)
      Renders a log block at the given coordinates
    • renderBlockQuartz

      public boolean renderBlockQuartz(Block par1Block, int par2, int par3, int par4)
    • renderStandardBlockWithAmbientOcclusion

      public boolean renderStandardBlockWithAmbientOcclusion(Block par1Block, int par2, int par3, int par4, float par5, float par6, float par7)
    • renderStandardBlockWithAmbientOcclusionPartial

      public boolean renderStandardBlockWithAmbientOcclusionPartial(Block par1Block, int par2, int par3, int par4, float par5, float par6, float par7)
      Renders non-full-cube block with ambient occusion. Args: block, x, y, z, red, green, blue (lighting)
    • renderStandardBlockWithColorMultiplier

      public boolean renderStandardBlockWithColorMultiplier(Block block, int x, int y, int z, float red, float green, float blue)
      Renders a standard cube block at the given coordinates, with a given color ratio. Args: block, x, y, z, r, g, b
    • renderBlockCocoa

      public boolean renderBlockCocoa(BlockCocoa par1BlockCocoa, int par2, int par3, int par4)
      Renders a Cocoa block at the given coordinates
    • renderBlockBeacon

      public boolean renderBlockBeacon(BlockBeacon par1BlockBeacon, int par2, int par3, int par4)
      Renders beacon block
    • renderBlockCactus

      public boolean renderBlockCactus(Block par1Block, int par2, int par3, int par4)
      Renders a cactus block at the given coordinates
    • renderBlockCactusImpl

      public boolean renderBlockCactusImpl(Block par1Block, int par2, int par3, int par4, float par5, float par6, float par7)
      Render block cactus implementation
    • renderBlockFence

      public boolean renderBlockFence(BlockFence par1BlockFence, int par2, int par3, int par4)
    • renderBlockWall

      public boolean renderBlockWall(BlockWall par1BlockWall, int par2, int par3, int par4)
      Renders wall block
    • renderBlockDragonEgg

      public boolean renderBlockDragonEgg(BlockDragonEgg par1BlockDragonEgg, int par2, int par3, int par4)
    • renderBlockFenceGate

      public boolean renderBlockFenceGate(BlockFenceGate par1BlockFenceGate, int par2, int par3, int par4)
      Render block fence gate
    • renderBlockStairs

      public boolean renderBlockStairs(BlockStairs par1BlockStairs, int par2, int par3, int par4)
      Renders a stair block at the given coordinates
    • renderBlockDoor

      public boolean renderBlockDoor(Block par1Block, int par2, int par3, int par4)
      Renders a door block at the given coordinates
    • renderFaceYNeg

      public void renderFaceYNeg(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the bottom face of the block. Args: block, x, y, z, texture
    • renderFaceYPos

      public void renderFaceYPos(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the top face of the block. Args: block, x, y, z, texture
    • renderFaceZNeg

      public void renderFaceZNeg(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the north (z-negative) face of the block. Args: block, x, y, z, texture
    • renderFaceZPos

      public void renderFaceZPos(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the south (z-positive) face of the block. Args: block, x, y, z, texture
    • renderFaceXNeg

      public void renderFaceXNeg(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the east (x-negative) face of the block. Args: block, x, y, z, texture
    • renderFaceXPos

      public void renderFaceXPos(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the east (x-positive) face of the block. Args: block, x, y, z, texture
    • renderBlockAsItemVanilla

      public void renderBlockAsItemVanilla(Block par1Block, int par2, float par3)
      Is called to render the image of a block on an inventory, as a held item, or as a an item on the ground
    • doesRenderIDRenderItemIn3D

      public static boolean doesRenderIDRenderItemIn3D(int par0)
      Checks to see if the item's render type indicates that it should be rendered as a regular block or not.
    • getBlockIcon

      public Icon getBlockIcon(Block par1Block, IBlockAccess par2IBlockAccess, int par3, int par4, int par5, int par6)
    • getBlockIconFromSideAndMetadata

      public Icon getBlockIconFromSideAndMetadata(Block par1Block, int par2, int par3)
    • getBlockIconFromSide

      public Icon getBlockIconFromSide(Block par1Block, int par2)
    • getBlockIcon

      public Icon getBlockIcon(Block par1Block)
    • getIconSafe

      public Icon getIconSafe(Icon par1Icon)
    • renderBlockFluids

      public boolean renderBlockFluids(Block block, int i, int j, int k)
    • renderGrassBlockWithAmbientOcclusion

      public boolean renderGrassBlockWithAmbientOcclusion(Block block, int x, int y, int z, float red, float green, float blue, Icon sideOverlayIcon)
    • renderGrassBlockWithColorMultiplier

      public boolean renderGrassBlockWithColorMultiplier(Block grassBlock, int x, int y, int z, float red, float green, float blue, Icon sideOverlayIcon)
    • renderBlockByRenderType

      public boolean renderBlockByRenderType(Block block, int i, int j, int k)
    • renderBlockAsItem

      public void renderBlockAsItem(Block block, int iItemDamage, float fBrightness)
    • renderStandardFullBlock

      public boolean renderStandardFullBlock(Block block, int i, int j, int k)
      speed render of typical blocks
    • renderStandardFullBlockWithAmbientOcclusion

      public boolean renderStandardFullBlockWithAmbientOcclusion(Block block, int i, int j, int k)
    • renderStandardFullBlockWithColorMultiplier

      public boolean renderStandardFullBlockWithColorMultiplier(Block block, int i, int j, int k)
    • renderFullBottomFace

      public void renderFullBottomFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
    • renderFullTopFace

      public void renderFullTopFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
    • renderFullEastFace

      public void renderFullEastFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
    • renderFullWestFace

      public void renderFullWestFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
    • renderFullNorthFace

      public void renderFullNorthFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the north (x-negative) face of the block. Args: block, x, y, z, texture
    • renderFullSouthFace

      public void renderFullSouthFace(Block par1Block, double par2, double par4, double par6, Icon par8Icon)
      Renders the given texture to the south (x-positive) face of the block. Args: block, x, y, z, texture
    • getOverrideTexture

      public Icon getOverrideTexture()
    • setUVRotateEast

      public void setUVRotateEast(int iValue)
    • setUVRotateWest

      public void setUVRotateWest(int iValue)
    • setUVRotateSouth

      public void setUVRotateSouth(int iValue)
    • setUVRotateNorth

      public void setUVRotateNorth(int iValue)
    • setUVRotateTop

      public void setUVRotateTop(int iValue)
    • setUVRotateBottom

      public void setUVRotateBottom(int iValue)
    • setUVOverrideEast

      public void setUVOverrideEast(float minU, float minV, float maxU, float maxV)
    • setUVOverrideWest

      public void setUVOverrideWest(float uMin, float vMin, float uMax, float vMax)
    • setUVOverrideSouth

      public void setUVOverrideSouth(float uMin, float vMin, float uMax, float vMax)
    • setUVOverrideNorth

      public void setUVOverrideNorth(float uMin, float vMin, float uMax, float vMax)
    • setUVOverrideTop

      public void setUVOverrideTop(float uMin, float vMin, float uMax, float vMax)
    • setUVOverrideBottom

      public void setUVOverrideBottom(float uMin, float vMin, float uMax, float vMax)
    • setUVOverrideHorizontal

      public void setUVOverrideHorizontal(float uMin, float vMin, float uMax, float vMax)
      Overrides UV coordinates for horizontal block faces
    • setUVOverrideVertical

      public void setUVOverrideVertical(float uMin, float vMin, float uMax, float vMax)
      Overrides UV coordinates for vertical block faces
    • clearUVRotation

      public void clearUVRotation()
    • clearUVOverride

      public void clearUVOverride()
    • clearUVTransform

      public void clearUVTransform()
    • getRenderAllFaces

      public boolean getRenderAllFaces()
    • setRenderAllFaces

      public void setRenderAllFaces(boolean bValue)
    • setRenderBounds

      public void setRenderBounds(AxisAlignedBB box)
    • renderStandardFallingBlock

      public void renderStandardFallingBlock(Block block, int i, int j, int k, int iMetadata)
      Used for falling blocks, and those being moved by pistons
    • renderStandardFullBlockMovedByPiston

      public void renderStandardFullBlockMovedByPiston(Block block, int i, int j, int k)
    • shouldSideBeRenderedBasedOnCurrentBounds

      public boolean shouldSideBeRenderedBasedOnCurrentBounds(int iNeighborI, int iNeighborJ, int iNeighborK, int iSide)
    • renderTorchForRedstoneLogic

      public void renderTorchForRedstoneLogic(double x, double y, double z, boolean lit)