    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005
    006    @SideOnly(Side.CLIENT)
    007    public class ChestItemRenderHelper
    008    {
    009        /** The static instance of ChestItemRenderHelper. */
    010        public static ChestItemRenderHelper instance = new ChestItemRenderHelper();
    011
    012        /** Instance of Chest's Tile Entity. */
    013        private TileEntityChest theChest = new TileEntityChest();
    014
    015        /** Instance of Ender Chest's Tile Entity. */
    016        private TileEntityEnderChest theEnderChest = new TileEntityEnderChest();
    017
    018        /**
    019         * Renders a chest at 0,0,0 - used for item rendering
    020         */
    021        public void renderChest(Block par1Block, int par2, float par3)
    022        {
    023            if (par1Block.blockID == Block.enderChest.blockID)
    024            {
    025                TileEntityRenderer.instance.renderTileEntityAt(this.theEnderChest, 0.0D, 0.0D, 0.0D, 0.0F);
    026            }
    027            else
    028            {
    029                TileEntityRenderer.instance.renderTileEntityAt(this.theChest, 0.0D, 0.0D, 0.0D, 0.0F);
    030            }
    031        }
    032    }