public BlockMessage(BlockType block, int x, int y, int z) { if (z > 1) //Throw an exception if the Z is out of range throw new System.ArgumentOutOfRangeException("The Z coordinate cannot be more than 1"); this.BlockID = block.ID; this.X = (short)x; this.Y = (short)y; this.Z = (byte)z; this.MessageTime = NetTime.Now; }