    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 DestroyBlockProgress
    008    {
    009        /**
    010         * entity ID of the player associated with this partially destroyed Block. Used to identify the Blocks in the client
    011         * Renderer, max 1 per player on a server
    012         */
    013        private final int miningPlayerEntId;
    014        private final int partialBlockX;
    015        private final int partialBlockY;
    016        private final int partialBlockZ;
    017
    018        /**
    019         * damage ranges from 1 to 10. -1 causes the client to delete the partial block renderer.
    020         */
    021        private int partialBlockProgress;
    022        private int field_82745_f;
    023
    024        public DestroyBlockProgress(int par1, int par2, int par3, int par4)
    025        {
    026            this.miningPlayerEntId = par1;
    027            this.partialBlockX = par2;
    028            this.partialBlockY = par3;
    029            this.partialBlockZ = par4;
    030        }
    031
    032        public int getPartialBlockX()
    033        {
    034            return this.partialBlockX;
    035        }
    036
    037        public int getPartialBlockY()
    038        {
    039            return this.partialBlockY;
    040        }
    041
    042        public int getPartialBlockZ()
    043        {
    044            return this.partialBlockZ;
    045        }
    046
    047        /**
    048         * inserts damage value into this partially destroyed Block. -1 causes client renderer to delete it, otherwise
    049         * ranges from 1 to 10
    050         */
    051        public void setPartialBlockDamage(int par1)
    052        {
    053            if (par1 > 10)
    054            {
    055                par1 = 10;
    056            }
    057
    058            this.partialBlockProgress = par1;
    059        }
    060
    061        public int getPartialBlockDamage()
    062        {
    063            return this.partialBlockProgress;
    064        }
    065
    066        public void func_82744_b(int par1)
    067        {
    068            this.field_82745_f = par1;
    069        }
    070
    071        public int func_82743_f()
    072        {
    073            return this.field_82745_f;
    074        }
    075    }