    001    package net.minecraft.block;
    002
    003    public class BlockEventData
    004    {
    005        private int coordX;
    006        private int coordY;
    007        private int coordZ;
    008        private int blockID;
    009
    010        /** Different for each blockID */
    011        private int eventID;
    012
    013        /** Different for each blockID, eventID */
    014        private int eventParameter;
    015
    016        public BlockEventData(int par1, int par2, int par3, int par4, int par5, int par6)
    017        {
    018            this.coordX = par1;
    019            this.coordY = par2;
    020            this.coordZ = par3;
    021            this.eventID = par5;
    022            this.eventParameter = par6;
    023            this.blockID = par4;
    024        }
    025
    026        /**
    027         * Get the X coordinate.
    028         */
    029        public int getX()
    030        {
    031            return this.coordX;
    032        }
    033
    034        /**
    035         * Get the Y coordinate.
    036         */
    037        public int getY()
    038        {
    039            return this.coordY;
    040        }
    041
    042        /**
    043         * Get the Z coordinate.
    044         */
    045        public int getZ()
    046        {
    047            return this.coordZ;
    048        }
    049
    050        /**
    051         * Get the Event ID (different for each BlockID)
    052         */
    053        public int getEventID()
    054        {
    055            return this.eventID;
    056        }
    057
    058        /**
    059         * Get the Event Parameter (different for each BlockID,EventID)
    060         */
    061        public int getEventParameter()
    062        {
    063            return this.eventParameter;
    064        }
    065
    066        /**
    067         * Gets the BlockID for this BlockEventData
    068         */
    069        public int getBlockID()
    070        {
    071            return this.blockID;
    072        }
    073
    074        public boolean equals(Object par1Obj)
    075        {
    076            if (!(par1Obj instanceof BlockEventData))
    077            {
    078                return false;
    079            }
    080            else
    081            {
    082                BlockEventData var2 = (BlockEventData)par1Obj;
    083                return this.coordX == var2.coordX && this.coordY == var2.coordY && this.coordZ == var2.coordZ && this.eventID == var2.eventID && this.eventParameter == var2.eventParameter && this.blockID == var2.blockID;
    084            }
    085        }
    086    }